mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
add acl to activity + bootstrap php
This commit is contained in:
@@ -25,11 +25,13 @@ use Chill\MainBundle\Entity\User;
|
||||
use Chill\ActivityBundle\Entity\ActivityReason;
|
||||
use Chill\ActivityBundle\Entity\ActivityType;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\MainBundle\Entity\HasCenterInterface;
|
||||
use Chill\MainBundle\Entity\HasScopeInterface;
|
||||
|
||||
/**
|
||||
* Activity
|
||||
*/
|
||||
class Activity
|
||||
class Activity implements HasCenterInterface, HasScopeInterface
|
||||
{
|
||||
/**
|
||||
* @var integer
|
||||
@@ -307,5 +309,17 @@ class Activity
|
||||
{
|
||||
return $this->person;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the center
|
||||
*
|
||||
* center is extracted from person
|
||||
*
|
||||
* @return \Chill\MainBundle\Entity\Center
|
||||
*/
|
||||
public function getCenter()
|
||||
{
|
||||
return $this->person->getCenter();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user