Esempio n. 1
0
 /**
  * Unassigns a role-permission relation
  *
  * @param integer  Id of the Role
  * @param integer  Id of the Permission
  * @return boolean
  */
 public function unassign($Role, $Permission)
 {
     $roles = new RoleManager($this->cfg);
     $roleId = $roles->returnId($Role);
     $permId = $this->returnId($Permission);
     $res = $this->dmap->unassign($roleId, $permId);
     return $res['success'];
 }