Esempio n. 1
0
 /**
  * @return \Venne\Security\Role[]
  */
 public function getWriteRoles()
 {
     if (!$this->isAllowedToRead()) {
         throw new PermissionDeniedException();
     }
     return $this->writeRoles->toArray();
 }
Esempio n. 2
0
File: Role.php Progetto: venne/venne
 /**
  * @param Role $child
  */
 public function removeChildren(Role $child)
 {
     $this->children->removeElement($child);
 }
Esempio n. 3
0
File: User.php Progetto: venne/venne
 public function removeRoleEntity(Role $role)
 {
     $this->roleEntities->removeElement($role);
 }