示例#1
0
        public bool RemoveGrantee(string name)
        {
            if (IsReserved(name))
            {
                return(false);
            }
            Grantee role = this._map.Remove(name);

            if (role == null)
            {
                return(false);
            }
            role.ClearPrivileges();
            this.UpdateAllRights(role);
            if (role.IsRole)
            {
                this._roleMap.Remove(name);
                this.RemoveEmptyRole(role);
            }
            return(true);
        }