/** * Delete all permissions for an item and a specific name or array of names * * @param string|string[] $gperm_name name(s) of the permission to delete * @param int $gperm_itemid id of the object to check * * @return bool true if no errors */ public function deletePermissionForItem($gperm_name, $gperm_itemid) { $gperm_itemid = (int) $gperm_itemid; if (!is_array($gperm_name)) { $gperm_name = (array) $gperm_name; } $return = true; foreach ($gperm_name as $pname) { $return = $return && $this->permissionHandler->deleteByModule($this->mid, $pname, $gperm_itemid); } return $return; }
/** * Delete all permissions for a specific name and item * * @param string $gperm_name name of the permission to test * @param int $gperm_itemid id of the object to check * * @return bool true if no errors */ public function deletePermissionForItem($gperm_name, $gperm_itemid) { return $this->perm->deleteByModule($this->mid, $gperm_name, $gperm_itemid); }