src/snac/server/database/DBUser.php
/**
     * Remove a privilege from a role
     *
     * Remvoe the privilege role link from the db, also remove the privilege from the role object as well.
     *
     * @param \snac\data\Role $role A role
     * @param \snac\data\Privilege $privilege Privilege is a Role object
     */
Remove a privilege from a role
Remvoe the privilege role link from the db, also remove the privilege from the role object as well.


Remove a privilege from a role Remvoe the privilege role link from the db also remove the privilege from the role object as well .
public function removePrivilegeFromRole($role, $privilege)
    {
        $this->sql->deletePrivilegeRoleLink($role->getID(), $privilege->getID());
        $role->removePrivilege($privilege);
        return true;
    }
public function removePrivilegeFromRole ( $ role , $ privilege ) { $ this -> sql -> deletePrivilegeRoleLink ( $ role -> getID ( ) , $ privilege -> getID ( ) ) ; $ role -> removePrivilege ( $ privilege ) ; return true ; }
Remove a privilege from a role
 Remvoe the privilege role link from the db, also remove the privilege from the role object as well.
Remove a privilege from a role Remvoe the privilege role link from the db also remove the privilege from the role object as well .
// $role is changed in place.