Disable send message

Disable send message

por Stephen Bloomer -
Número de respostas: 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

Em resposta a 'Stephen Bloomer'

Re: Disable send message

por Helen Foster -
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers Foto de 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.
Em resposta a 'Helen Foster'

Re: Disable send message

por 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?

Em resposta a 'andrew singleton'

Re: Disable send message

por Helen Foster -
Foto de Core developers Foto de Documentation writers Foto de Moodle HQ Foto de Particularly helpful Moodlers Foto de Plugin developers Foto de Testers Foto de 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.

Em resposta a 'Helen Foster'

Re: Disable send message

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

Thank you