/** * 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 Tx_Commerce_Utility_BackendUtility::isPermissionSet($perm, $this->perms_record); }