src/snac/server/database/DBUser.php
/**
     * Remove a role from the User via table appuser_role_link.
     *
     * Remove the role from the user is how we say it, but the relation is bi-directional. In retrospect, this
     * function should have been called removeRoleFromUser.
     *
     * After removing the role, refresh the User role list by reading it back from the database.
     *
     * @param \snac\data\User $user A user
     * @param \snac\data\Role $role Role object
     */
Remove a role from the User via table appuser_role_link.
Remove the role from the user is how we say it, but the relation is bi-directional. In retrospect, this
function should have been called removeRoleFromUser.

After removing the role, refresh the User role list by reading it back from the database.


Remove a role from the User via table appuser_role_link . Remove the role from the user is how we say it but the relation is bi - directional . In retrospect this function should have been called removeRoleFromUser . After removing the role refresh the User role list by reading it back from the database .
public function removeUserRole($user, $role)
    {
        $this->sql->deleteRoleLink($user->getUserID(), $role->getID());
        $user->setRoleList($this->listUserRoles($user));
        return true;
    }
public function removeUserRole ( $ user , $ role ) { $ this -> sql -> deleteRoleLink ( $ user -> getUserID ( ) , $ role -> getID ( ) ) ; $ user -> setRoleList ( $ this -> listUserRoles ( $ user ) ) ; return true ; }
Remove a role from the User via table appuser_role_link.
Remove a role from the User via table appuser_role_link .