public function canUserSet(TBGUser $user)
 {
     return $user->hasPermission($this->getPermissionsKey(), $this->getID(), 'core', true, true);
 }
Exemplo n.º 2
0
 public function canUserSet(TBGUser $user)
 {
     $retval = $user->hasPermission($this->getPermissionsKey(), $this->getID(), 'core', true);
     $retval = $retval === null ? $user->hasPermission($this->getPermissionsKey(), 0, 'core', true) : $retval;
     return $retval !== null ? $retval : TBGSettings::isPermissive();
 }