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
This commit is contained in:
Jesper Hauge
2014-09-23 15:36:43 +02:00
parent ca8a819590
commit a2eda1e8dd

View File

@@ -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;