function unassign($Role, $UserID = null)
	{
	    if ($UserID === null)
	        throw new \RbacUserNotProvidedException ("\$UserID is a required argument.");

	    if (is_numeric($Role))
	    {
	        $RoleID = $Role;

	    } else {

	        if (substr($Role, 0, 1) == "/")
	            $RoleID = Jf::$Rbac->Roles->pathId($Role);
	        else
	            $RoleID = Jf::$Rbac->Roles->titleId($Role);
	    }

	    return Jf::sql("DELETE FROM {$this->tablePrefix()}userroles WHERE UserID=? AND RoleID=?", $UserID, $RoleID) >= 1;
	}
function unassign($Role, $UserID = null)
	{
	    if ($UserID === null)
	        throw new \RbacUserNotProvidedException ("\$UserID is a required argument.");

	    if (is_numeric($Role))
	    {
	        $RoleID = $Role;

	    } else {

	        if (substr($Role, 0, 1) == "/")
	            $RoleID = Jf::$Rbac->Roles->pathId($Role);
	        else
	            $RoleID = Jf::$Rbac->Roles->titleId($Role);
	    }

	    return Jf::sql("DELETE FROM {$this->tablePrefix()}userroles WHERE UserID=? AND RoleID=?", $UserID, $RoleID) >= 1;
	}
function unassign ( $ Role , $ UserID = null ) { if ( $ UserID === null ) throw new \ RbacUserNotProvidedException ( "\$UserID is a required argument." ) ; if ( is_numeric ( $ Role ) ) { $ RoleID = $ Role ; } else { if ( substr ( $ Role , 0 , 1 ) == "/" ) $ RoleID = Jf :: $ Rbac -> Roles -> pathId ( $ Role ) ; else $ RoleID = Jf :: $ Rbac -> Roles -> titleId ( $ Role ) ; } return Jf :: sql ( "DELETE FROM {$this->tablePrefix()}userroles WHERE UserID=? AND RoleID=?" , $ UserID , $ RoleID ) >= 1 ; }
Unassigns a role from a user

@param mixed $Role
Id, Title, Path
@param integer $UserID
UserID (use 0 for guest)

@throws RbacUserNotProvidedException
@return boolean success
Unassigns a role from a user