Exemplo n.º 1
0
        public static Boolean CanAppAdmin(IUser user, IMember owner, Type appType, int appInstanceId)
        {
            int roleId = ((User)user).RoleId;

            IMemberAppService appService = ServiceMap.GetUserAppService(owner.GetType());
            IMemberApp        app        = appService.GetByApp(appType, appInstanceId);

            return(IsRoleInApp(roleId, app.Id));
        }
Exemplo n.º 2
0
 private void setService(MvcContext ctx)
 {
     this.appService  = ServiceMap.GetUserAppService(this.owner.GetType());
     this.menuService = ServiceMap.GetMenuService(this.owner.GetType());
 }