Hide Site Administration menu options

Hide Site Administration menu options

by Saul Montalvo Perales -
Number of replies: 3
It is possible to hide some of the Site Administration options for an specific role or user, we want to show just three options on the menu for a different users on our site, we are using moodle 1.8.

What i need to do ( if its possible ) is just show the Users menu, Courses menu and Reports in the Site Administration menu.
Average of ratings: -
In reply to Saul Montalvo Perales

Re: Hide Site Administration menu options

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Saul,

I suggest you try creating a duplicate administrator role then changing some of the capabilities from Allow to Not set, depending on what you require the user to be able to do.
In reply to Helen Foster

Re: Hide Site Administration menu options

by Saul Montalvo Perales -
Hi Elen, we have tried to do what you suggest, but the profile is still accessing to some features that we are trying to hide, this profile is based on an administrator rights so it is a little hard to find the perfect combination. What we need to do its to create a profile that can acces to the most administrative functions except for some user and role options.
In reply to Saul Montalvo Perales

Re: Hide Site Administration menu options

by Amy Groshek -
Saul,

You can edit the permissions of a new role, and control what this role can do, but once you take away certain permissions, those capabilities will no longer be available from the admin menu. As you may have noticed, the menu does not change exactly in correspondence to permissions. If you restrict permissions too much, the admin block goes away entirely.

For example: the course creator role can create courses but has to access them by going to the "All courses" view, not from the front page. You can give the role access to users as well, but without administrator's "do all things" permissions, they will not have the admin block menu view...

Probably you want to create a role to use most of the time that doesn't have access to the configuration screens that the admin view has, but can manage users and courses. It's very difficult. I was able to create a custom SiteManager role, and give all permissions except view of front page reports and logs. But these options were not all visible from the admin block. Certain things (like create courses) had to be accessed the old 1.6 way.

Amy