Roles who can edit the page

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
12/4/2006 4:52:39 AM
Gravatar
Total Posts 488

Roles who can edit the page

According to the code, "Admins" and "Content Administrators" can edit any page.

But in the interface when setting the roles who can edit the page one can say they cannot (and this shall not work).
It would be nice to somehow show in the user interface that these roles always have the permission to edit the page. For example, you can check and disable corresponding checkboxes on /Admin/PageSettings.aspx
12/4/2006 1:15:05 PM
Gravatar
Total Posts 18439

Re: Roles who can edit the page

One thing that is not obvious is if you do check the box for Admins, Content Admins no longer have permission. So by default Admins and Content Admins can edit anything but if you explicitly specify that Admins can edit (without also explicity specifying that Content Admins can edit) then Content Editors can not edit. This is to allow the possibility that we want some things only Admin can edit.

Let me ponder on this and see if I can figure out a good way to make it consistent in the UI.

Joe
12/4/2006 9:53:57 PM
Gravatar
Total Posts 488

Re: Roles who can edit the page

I just read the code in Default.aspx.cs, line 146:

            if ((WebUser.IsInRoles("Admins;Content Administrators"))
                || (WebUser.IsInRoles(currentPage.EditRoles)))
            {
                ...
            }
As far as I understand, "Content Administrators" can edit this page in any case.


May be, it would be better to change it to

  if (WebUser.IsInRoles(currentPage.EditRoles))

only (here and in the other places also), but to make checkboxes near "Admins" and "Content Administrators" checked by default on newly created pages?
You must sign in to post in the forums. This thread is closed to new posts.