public function canUserSet(TBGUser $user) { return $user->hasPermission($this->getPermissionsKey(), $this->getID(), 'core', true, true); }
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(); }