예제 #1
0
 private function hasSurveyRight(Survey $survey, $right)
 {
     $collection = new ResourceCollection([$survey->getResourceNode()]);
     return $this->authorization->isGranted($right, $collection);
 }
예제 #2
0
 public function __construct(Survey $survey, User $user)
 {
     parent::__construct(self::ACTION, array(), $user, null, $survey->getResourceNode(), null, $survey->getResourceNode()->getWorkspace());
 }