adding the possibility to remove activities

fix #28
This commit is contained in:
2016-06-08 21:26:30 +02:00
parent dfaa4b0968
commit 1e476b39da
10 changed files with 152 additions and 25 deletions

View File

@@ -33,6 +33,7 @@ class ActivityVoter extends AbstractChillVoter implements ProvideRoleInterface
const CREATE = 'CHILL_ACTIVITY_CREATE';
const SEE = 'CHILL_ACTIVITY_SEE';
const UPDATE = 'CHILL_ACTIVITY_UPDATE';
const DELETE = 'CHILL_ACTIVITY_DELETE';
/**
*
@@ -47,7 +48,7 @@ class ActivityVoter extends AbstractChillVoter implements ProvideRoleInterface
protected function getSupportedAttributes()
{
return array(self::CREATE, self::SEE, self::UPDATE);
return array(self::CREATE, self::SEE, self::UPDATE, self::DELETE);
}
protected function getSupportedClasses()