mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
add dummy acl for export [WIP][ci-skip]
This commit is contained in:
@@ -22,6 +22,7 @@ namespace Chill\ActivityBundle\Export\Export;
|
||||
use Chill\MainBundle\Export\ExportInterface;
|
||||
use Doctrine\ORM\Query\Expr\Join;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -73,5 +74,10 @@ class CountActivity implements ExportInterface
|
||||
{
|
||||
return array('person', 'activity');
|
||||
}
|
||||
|
||||
public function requiredRole()
|
||||
{
|
||||
return new Role('dummy');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -26,6 +26,7 @@ use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||
use Chill\ActivityBundle\Entity\ActivityReason;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Doctrine\ORM\Query\Expr;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -86,7 +87,11 @@ class ActivityReasonFilter implements FilterInterface
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
|
||||
return 'Filter by reason';
|
||||
}
|
||||
|
||||
public function requiredRole()
|
||||
{
|
||||
return new Role('dummy');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user