Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Cannot set Global Administrator View modes: 
User avatar
Member
Member
ori0les-yahoo - 10/22/2009 8:27:39 AM
   
Cannot set Global Administrator
for some reason, my Global Administrator no longer has "is global administrator" checked and the checkbox is grayed out, so i cannot put it back. I have one other use configured, and the checkbox is grayed out for that user as well - so at this point, I have no global admin, which means I cannot access site manager. Anyone have any suggestions?

Thanks in advance...

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/22/2009 10:07:21 AM
   
RE:Cannot set Global Administrator
Hello,

Which edition of Kentico are you using? If it is the free edition, it is possible, that the global administrator is another user and there is just one global administrator allowed.

Best regards,
Boris Pocatko

User avatar
Member
Member
ori0les-yahoo - 10/22/2009 10:22:40 AM
   
RE:Cannot set Global Administrator
Boris,

Yes, I am using the free edition, but no user has Global Administrator privelages.

Thanks,
John

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/22/2009 10:32:44 AM
   
RE:Cannot set Global Administrator
Hello again,

This is odd. Could you please check the database table CMS_User, the column "UserIsGlobalAdministrator"? By setting this column to True or False you are checking/unchecking the metioned field.

Best regards,
Boris Pocatko

User avatar
Member
Member
ori0les-yahoo - 10/22/2009 12:22:07 PM
   
RE:Cannot set Global Administrator
Boris - that worked. I just set that column to true for my user ID and everything is working. Thank you so much for your quick solution. I REALLY appreciate it.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/22/2009 12:33:20 PM
   
RE:Cannot set Global Administrator
Hello,

I am glad I could help :)

Best regards,
Boris Pocatko

User avatar
Member
Member
ahmed.hassan-dream-makers - 1/26/2011 6:28:54 AM
   
RE:Cannot set Global Administrator
Hello Boris,

I have a question about the Global Administrator, I need to do the vice versa of you fixed here, which is hide or disable the checkbox of the Is Global Administrator to any user who is not Global Administrator, how is that possible?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/28/2011 3:36:09 PM
   
RE:Cannot set Global Administrator
Hello,

Yes, it is possible to hide the checkbox. In order to achieve this you will need to alter the Page_Load method in ~\CMSSiteManager\Administration\Users\User_Edit_General.aspx.cs:


CheckBoxLabelIsGlobalAdministrator.Enabled = CMSContext.CurrentUser.IsGlobalAdministrator;

// START
if (!CMSContext.CurrentUser.IsGlobalAdministrator)
{
plcGlobalAdmin.Visible = false;
}
// END

userId = QueryHelper.GetInteger("userid", 0);

this.cultureSelector.DisplayAllCultures = true;

Best regards,
Boris Pocatko