Preventing students from disable notifications

Preventing students from disable notifications

von Lionel A. Richemond -
Anzahl Antworten: 2

Hello, please excuse my english.
I would like to please ask you for support.

My moodle it's a Moodle 3.5.1+ (Build: 20180810) with Fordson v3.5.


I'm trying to seek a way to prevent the users (students) to disable notifications or modify the permissions about it


I mean, when a student goes to User Profile ---> Notification Preferences (image attached) and also when in the moodle mobile app, in Configuration -->Notification Preferences.


When in Web, I thought about removing the menu from sight via css.. don't know about mobile.. but it doesn't seem to be the good way because if someone know the URI then it's still posible to access. Somehow doing something manual like 'editing the file' o that, doesn't feel natural.

I looked for some Permission like the one available for the plugin "advanced notifications when you can forbid the student to configure them

( block/advnotifications:managenotifications )
but wasn't able to find anything.


Is this doable? 
If so,
which way would you accomplish this?  Is there an option out of my sight?


Thanks so much!

Lio


Anhang Captura1_moodle.JPG
Als Antwort auf Lionel A. Richemond

Re: Preventing students from disable notifications

von Howard Miller -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von Plugin developers

The capability you want to disable is...

moodle/user:editownmessageprofile

You should edit the 'Authenticated user' role and un-tick the Allow for that capability. 

Als Antwort auf Howard Miller

Re: Preventing students from disable notifications

von Lionel A. Richemond -

It works like a charm!

I found out that this capaibility set to "Allow" to  "Authenticated user", overrides the settings for the other roles set to "Prohibit".


What I did so, was to remove the "Allow" from "Authenticated user" and then set the capability for "Student".

Thank you Howard!