public virtual void SavePermissionAll() { string[] actionIds = ctx.web.postValuesByKey(typeof(SecurityAction).Name); ForumApp f = ctx.app.obj as ForumApp; SecurityTool tool = SecurityHelper.GetSecurityTool(f, ctx); tool.SaveActionAll(actionIds); if ("true".Equals(ctx.Get("applyAll"))) { boardService.UpdateSecurityAll(ctx.app.obj as ForumApp); } echoRedirectPart(lang("opok")); }
public virtual void SaveBoardPermissionAll(long id) { ForumBoard board = boardService.GetById(id, ctx.owner.obj); if (board == null) { echoRedirect(alang("exBoardNotFound")); return; } string[] actionIds = ctx.web.postValuesByKey(typeof(SecurityAction).Name); SecurityTool tool = SecurityHelper.GetSecurityTool(board, ctx); tool.SaveActionAll(actionIds); echoRedirectPart(lang("opok")); }