Installation and deployment
Version 3.x > Installation and deployment > Site Manager & Global Admin View modes: 
User avatar
Member
Member
sysadmin-ricnor - 10/1/2008 4:39:37 AM
   
Site Manager & Global Admin
Site manager can be accessed only if you are a global administrator. Is it possible for a user, who is set up as "not" a global administrator to access site manager, and view just the sites assigned to that user?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/1/2008 5:56:17 AM
   
RE:Site Manager & Global Admin
Hi,

unfortunately, this functionality is not supported.

You could re-write all files from website_application_folder/CMSSiteManager/ and exchange everywhere, where is the condition if (CMSContext.CurrentUser.IsGlobalAdministrator == true), a permission check according your needs.

You would need also to re-write the functions, which select sites in the list (CMSSitemanager -> Sites) or in the dropdowlists (CMSSiteManager -> Settings).

Best regards,
Helena Grulichova

User avatar
Member
Member
sysadmin-ricnor - 10/1/2008 6:04:28 AM
   
RE:Site Manager & Global Admin
In case of rewriting, will any future release of kentico clash with the changes we make? If yes, is there a way to avoid the clash?

Vid

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/1/2008 7:34:00 AM
   
RE:Site Manager & Global Admin
Hi,

You will need to be careful by upgrade - you will need to reflect these changes to the new files.

There is also option to add user to specified role. Then, you will create anew permission in module you need (Site Manager -> Development -> Modules). Then, in the Administration section -> Permission you will grant the role with this permission. After this, you will need to modify the code behind files of the pages you want to allow access to. you can find there something like this:

if (CMSContext.CurrentUser.IsGlobalAdministrator)

And you will need to change it to:
if (CMSContext.CurrentUser.IsGlobalAdministrator || CMSContext.CurrentUser.IsAuthorizedPerResource("CMS.Content", "DesignTab"))

where "CMS.Content" is the code name of the module and "DesignTab" is the name of the permission. I hope it makes sense.

Best Regards,
Juraj Ondrus