Disable send message

Disable send message

- Stephen Bloomer の投稿
返信数: 6

We have a problem with the students using the “Send Message” function as a chat forum.  I changed the setting under “Admin/Users/Permission/Define roles/ for Students and set “Send messages to any user” to Prevent and then Prohibit, but the students can still send messages.  Any ideas on where I went wrong?

 

Steve

Stephen Bloomer への返信

Re: Disable send message

- Helen Foster の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers 画像 Translators
Hi Steve,

The reason why changing the site:sendmessage capability to prohibit for the student role didn't work is because the capability can only be applied in the system context, and most likely your student role is applied in the course context (i.e. users are enrolled as students on particular courses).

Messaging may be disabled completely via Administration > Security > Site policies. Alternatively, you can limit messaging to specific users by changing the site:sendmessage capability for the authenticated user role from allow to not set, then create a new role with site:sendmessage allowed and assign this to selected users in the system context. Please see the blogger role documentation for a similar case, where blogging is limited to specific users.
Helen Foster への返信

Re: Disable send message

- andrew singleton の投稿

Hi Helen,

When creating the new role if you just want teachers to be able to message should you set the legacy role as teacher edit? so that the authenticated user - the student is disabled?

andrew singleton への返信

Re: Disable send message

- Helen Foster の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers 画像 Translators
Hi Andrew,

Allowing the capability site:sendmessage for the role of teacher will only work if users are assigned the role of teacher as a system role i.e. they are teachers in every course on your site. If users are assigned the role of teacher in the course context, you will need to create a new role with the capability to send messages allowed and assign it as a system role.

Helen Foster への返信

Re: Disable send message

- Lisa Sorenson の投稿
Hi Helen,
Can I disable messaging for specific classes, and have it apply only to students and not teachers?

Thank you