Site structure
Version 6.x > Site structure > Adding System to dashboard View modes: 
User avatar
Member
Member
Aon_Vlado - 10/22/2012 2:28:45 PM
   
Adding System to dashboard
I want to let certain role to have modules like System and E-Mail Queue in Dashboard. I added this role to Widgets -> Dashboard -> System ->Authorized Role -> Allowed For but I still see error message on Dashboard:
“You don't have permission to perform this operation.”
What else do I need to change?

Thanks,

Vlado

User avatar
Member
Member
Aon_Vlado - 10/29/2012 7:46:11 PM
   
RE:Adding System to dashboard
It looks like there is no solution for this....

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/3/2012 12:51:58 PM
   
RE:Adding System to dashboard
Hello.

Could you please try to enable security debug according to http://devnet.kentico.com/docs/devguide/security_debugging.htm to see what permission it fails on? Also, if you navigate to web part this widget is based on and see its code-behind (\CMSWebParts\DashBoard\System.ascx.cs), you may see there are some permissions conditions:

private void sysInfo_OnCheckPermissions(string permissionType, CMSAdminControl sender)
{
if ((CMSContext.CurrentUser == null) || !CMSContext.CurrentUser.UserSiteManagerAdmin)
{
sender.StopProcessing = true;
sysInfo.Visible = false;
messageElem.Visible = true;
messageElem.ErrorMessage = GetString("general.nopermission");
}
}

You can debug it as well or customize these conditions to match your requirements. Maybe given user is not Site manager admin, what is required.

Best Regards,
Radek Macalik

User avatar
Member
Member
Aon_Vlado - 11/6/2012 6:33:53 AM
   
RE:Adding System to dashboard
Unfortunately, the security log does not tell me much. I know that that user [biz] is not GlobalAdministrator and I do not want him to be one.
// /DS2/CMSModules/MyDesk/Dashboard.aspx?dashboardName=MyDesk&templateName=MyDeskDashboard&hash=b38763dfdf881c2ed91856b684d126a51dc130d343a438925dc3dec28e7d596b
[].IsAuthorizedPerUIElement(, ) =
[biz].IsGlobalAdministrator(, ) = False
[].IsAuthorizedPerUIElement(, ) =
[biz].IsGlobalAdministrator(, ) = False
[].IsAuthorizedPerUIElement(, ) =
[biz].IsGlobalAdministrator(, ) = False
[biz].IsGlobalAdministrator(, ) = False
[biz].IsGlobalAdministrator(, ) = False
[biz].IsGlobalAdministrator(, ) = False
[].IsAuthorizedPerUIElement(, ) =
[biz].IsGlobalAdministrator(, ) = False
[].IsAuthorizedPerUIElement(, ) =
[biz].IsGlobalAdministrator(, ) = False
[].IsAuthorizedPerResource(, ) =
[biz].IsGlobalAdministrator(, ) = False
[biz].IsGlobalAdministrator(, ) = False

I am not sure what means “Site manager admin”. I could not find this setting and documentation search did not return anything about it.

What I am trying to do is to allow business to see very restricted CMSDesk: WebStats, System, Users. They should not be able to edit the content.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/13/2012 3:31:56 AM
   
RE:Adding System to dashboard
Hello.

By "Site manager admin" I meant global admin.

In this case, you will need to customize logical condition in the \CMSWebParts\DashBoard\System.ascx.cs as suggested in previous post.

Best Regards,
Radek Macalik

User avatar
Member
Member
Aon_Vlado - 11/14/2012 12:45:20 PM
   
RE:Adding System to dashboard
OK, could we expect a change of this behavior in some of the next hotfixes?
Thanks,
Vlado

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/20/2012 6:02:40 AM
   
RE:Adding System to dashboard
Hello.

Actually, I don’t believe it’s a bug. Simply said, some options are mentioned for global admins only and if you want different behavior, you can customize it like I suggested before.

Best Regards,
Radek Macalik