Exemple #1
0
 /**
  * Returns whether the permission is set and allowed for the current usera
  *
  * @param int $perm Permission
  *
  * @return bool TRUE if permission is set, FALSE if permission is not set
  */
 public function isPermissionSet($perm)
 {
     if (!is_string($perm)) {
         return false;
     }
     $this->loadPermissions();
     return \CommerceTeam\Commerce\Utility\BackendUtility::isPermissionSet($perm, $this->perms_record);
 }