Пример #1
0
 public function acl(Data_User $user, $operation = 'write')
 {
     if ($user->isAdmin()) {
         return TRUE;
     }
     if ($user->userid === $this->owner) {
         return TRUE;
     }
     throw new Exception('Current user [' . $user->userid . '] do not have permissions to perform operation [' . $operation . '] on this Foodle.');
 }