public static SecurityTool GetSecurityTool(ISecurity f, MvcContext ctx) { IList forumRoles = ForumRole.GetAll(); IList ownerRoles; if (ctx.owner.obj.GetType() != typeof(Site)) { ownerRoles = ctx.owner.obj.GetRoles(); } else { ownerRoles = new ArrayList(); } IList siteRoles = new SiteRoleService().GetRoleAndRank(); IList allRoles = new RoleMerger() .Add(forumRoles) .Add(ownerRoles) .Add(siteRoles) .GetResults(); SecurityTool tool = new SecurityTool(f, new SecurityAction(), allRoles); return(tool); }
public PermissionFrontController() { siteRoleService = new SiteRoleService(); appService = new SiteAppService(); appService.menuService = new SiteMenuService(); logService = new SiteLogService(); }
public UserController() { userService = new UserService(); roleService = new SiteRoleService(); msgService = new MessageService(); logService = new SiteLogService(); confirmEmail = new ConfirmEmail(); }
public UserService() { currencyService = new CurrencyService(); roleService = new SiteRoleService(); userIncomeService = new UserIncomeService(); hashTool = new HashTool(); }
public PermissionBackController() { SiteRoleService = new SiteRoleService(); appInfoService = new AppInstallerService(); appService = new SiteAppService(); appService.menuService = new SiteMenuService(); logService = new SiteLogService(); }
//--------------------------------------------------------- public void AdminIndex() { target(SaveAppAdminRole); List <SiteRole> roles = SiteRoleService.GetAdminRoles(); IList apps = appService.GetByMember(Site.Instance.Id); bindAppList(apps); bindRoleList(roles, apps); }
//--------------------------------------------------------- public void UserDataAdmin() { target(SaveSecuritySetting); List <SiteRole> roles = SiteRoleService.GetAdminRoles(); List <AppInstaller> apps = appInfoService.GetUserDataAdmin(); bindUaAppList(apps); bindUaRoleList(roles, apps); }
public CreditController() { incomeService = new UserIncomeService(); roleService = new SiteRoleService(); currencyService = new CurrencyService(); }
public SecurityController() { roleService = new SiteRoleService(); logService = new SiteLogService(); }
public UserIncomeService() { currencyService = new CurrencyService(); roleService = new SiteRoleService(); }