Esempio n. 1
0
            public ReadOnlyCollection <GrantedSysPrivilege> DownloadPrivilegesChange(
                ReadOnlyCollection <ESysPrivilege> privs, RoleManager.Role from)
            {
                RolePrivManagerLocal rolePrivManager = from.PrivManager as RolePrivManagerLocal;
                ReadOnlyCollection <GrantedSysPrivilege> grants;

                if (rolePrivManager.GetPrivilegesGrantsInfo(privs, out grants))
                {
                }
            }
Esempio n. 2
0
            public bool DownloadPrivilegeChange(ESysPrivilege privilege, RoleManager.Role from)
            {
                GrantedSysPrivilege  downloaded;
                RolePrivManagerLocal rolePrivManager = from.PrivManager as RolePrivManagerLocal;

                if (rolePrivManager.GetPrivilegeGrantInfo(privilege, out downloaded))
                {
                    if (mergePrivilege(createInheritedGrant(downloaded)))
                    {
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }
                return(false);
            }