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)) { } }
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); }