Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-18494

messaging disabled still allows users to send messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Major Major
    • None
    • 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4
    • Messages, Usability
    • None
    • ALL
    • Any
    • MOODLE_19_STABLE
    • Easy

      Even though messaging is disabled, teachers can still send a message to their selected users in the participants block.

      Change this:
      $displaylist['messageselect.php'] = get_string('messageselectadd');

      To this:
      if ((has_capability('moodle/course:bulkmessaging', $context) && $context->id != $frontpagectx->id) and $CFG->messaging)

      { $displaylist['messageselect.php'] = get_string('messageselectadd'); }

      To require that they have the capability AND messaging is enabled sitewide.

            skodak Petr Skoda
            rrusso Robert Russo
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.