From a2eda1e8dd3c124b6fc7862afaf2f9af9f80299c Mon Sep 17 00:00:00 2001 From: Jesper Hauge Date: Tue, 23 Sep 2014 15:36:43 +0200 Subject: [PATCH] This commit fixes U4-1115, by allowing other backend admin users than the root user, the possibility of allowing access to not used sections. Right now the EditUser.aspx.cs codebehind only lists out sections the currently logged in user already has access to, unless the currently logged in user is the "root user", ie. the user with Id = 0 --- .../umbraco.presentation/umbraco/users/EditUser.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs index 2c71e529a4..b5fff5e39a 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/users/EditUser.aspx.cs @@ -365,7 +365,7 @@ namespace umbraco.cms.presentation.user Application[] uapps = u.Applications; foreach (Application app in BusinessLogic.Application.getAll()) { - if (CurrentUser.IsRoot() || currentUserApps.Contains(";" + app.alias + ";")) + if (CurrentUser.IsAdmin() || currentUserApps.Contains(";" + app.alias + ";")) { ListItem li = new ListItem(ui.Text("sections", app.alias), app.alias); if (!IsPostBack) foreach (Application tmp in uapps) if (app.alias == tmp.alias) li.Selected = true;