Allow public pages for staff and admins only

Bug #1429325 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

When you use Mahara with a range of different age groups, you may prevent certain ages from creating public pages so that they don't share their pages accidentally with the public, e.g. young children who don't look at the sharing options carefully.

I propose we be more granular in who can create public pages and public profiles on the institution level:
- everyone
- staff and admins only

Ideally, an admin could overwrite the setting for individual "trusted" regular users as well so that they don't need to be given the staff role as that comes with more privileges.

And now it's looking more and more like being able to create other roles and be able to manage permissions more like Moodle manages capabilities...

Curently, roles are hard-coded in Mahara and thus that would need to change first.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

I think we could achieve this without implementing a fully granular Moodle-style permissions system (and all the performance hits that come with that).

The implementation would look like this:

1. We change the setting "allow public pages" from a tickbox to a menu labeled "who can create public pages", options "anyone", "admins + staff", "admins", "no one". (Maybe some variant in there for institutional admins & staff as well)

2. We do a similar thing to the existing institution-level "allow public views" setting. The current version of that setting allows public views if the user belongs to *any* institution that allows public views, so we would use similar "any" logic for the new version of the setting.

3. We add a tickbox for "can create public pages" to the user settings page, accessible only to admins (much like the user settings option for setting a user's auth instance). This setting would allow the user to create public pages regardless of any other site or institutional settings (or the spam probation system).

4. We write a function, "can_create_public_pages()" that checks all of these things in the proper order.

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Sounds good to me. For the drop-down menu we can use the same language already used for the "Create groups" option:
- Administrators only
- Administrators and staff only
- Everyone

I wouldn't distinguish between institution and site staff on the site level, but leave that up to the institutions.

Revision history for this message
Andreas Schenkel (andreas-schenkel) wrote :

WorkArrocund:
I use two institutions, one with public pages NOT allowed. That is the "normal" institution that is used by every user.
Then I make some users also members of an other institution in which public pages are allowed.
So these users can create public views.
Problem: By allowing public pages in mahara also public profies are allowed. So althoug in the first institution the public pages are not allowed the user can make their profile page public.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.