404 error on user permission roles - Moodle 2.4

404 error on user permission roles - Moodle 2.4

by Anya Zinoveva -
Number of replies: 6

I'm in My home Site administration Users Permissions Define roles

sitename.com/images//24/en/Capabilities/moodle/user:changeownpassword

_____

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0

HTTP Referer: http://sitename.com/admin/roles/define.php?action=view&roleid=3

Average of ratings: -
In reply to Anya Zinoveva

Re: 404 error on user permission roles - Moodle 2.4

by ben reynolds -

At demo.moodle.net, the link just goes to Moodle documentation at http://docs.moodle.org/23/en/Capabilities/moodle/user:changeownpassword

So, someone has mucked up the link, but that's not what you need.

I'm looking at Moodle 2.3.2. It looks like you're trying to disable the Teacher's ability. Teacher is roleid=3.

When I edit that role, I see change own password as "Not set." You need to click "Show advanced" above the Filter. At that point you are given the additional options of "Prevent" and "Prohibit."

In reply to ben reynolds

Re: 404 error on user permission roles - Moodle 2.4

by Anya Zinoveva -

Thank you, Ben.

I did set up password option as "prohibit".

However, when I log in as a teacher, I can still see the "change password" option in their setting.

Attachment teacher role-psw settubgs.gif
In reply to Anya Zinoveva

Re: 404 error on user permission roles - Moodle 2.4

by Anya Zinoveva -

Here is the teacher view-link - change pasword option.

How do I disable it? 

Attachment teacher-change psw.jpg
In reply to Anya Zinoveva

Re: 404 error on user permission roles - Moodle 2.4

by ben reynolds -

Hi Anya,

Are you viewing this via "Login As" or by truly logging in as a teacher? Try logging out as you and logging in as a *fake teacher* before you make production server changes.

Because, using "Login as," you are still "Admin." You need to test only with the capabilities of the role, not as "pretending" to be a role. Thus the need for a "fake teacher" or whichever role you want to restrict.

So, specifically, log out as you. Then log in as your fake teacher. Then test what you can do.

Sorry to be so long winded.

In reply to ben reynolds

Re: 404 error on user permission roles - Moodle 2.4

by Anya Zinoveva -

Hi Ben,

Just to confirm:

Yes, I logged in as one of the teachers. I used a diferent browser, and the teacher login credentials to login.

Anya

Attachment teacher profile settings.jpg
In reply to Anya Zinoveva

Re: 404 error on user permission roles - Moodle 2.4

by ben reynolds -

Using the Orange School demo site at http://school.demo.moodle.net/ I logged as manager, set changeownpassword to "prohibit." Logged in again as a teacher, I successfully changed my own password.

But, I *think* that is because the teacher also has the role of authenticated user, and authenticated user changeownpassword is set to "allow."

Hmm. If you set it to prevent or prohibit then *probably* everyone but an admin will not be able to change their password.

See here for options http://docs.moodle.org/22/en/Roles_FAQ#How_can_I_prevent_a_user_from_changing_their_own_password.3F

Average of ratings: Useful (1)