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

Online Users Block doesn't perform capability check when displaying messaging icon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9, 1.9.1, 1.9.2, 2.0
    • Fix Version/s: 1.9.4
    • Component/s: Blocks
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Online Users block shows a message icon+link to all users regardless of whether the 'moodle/site:sendmessage' capability is set(it actually just checks whether messaging is globally enabled).

      This little patch applies the correct check.

        Attachments

          Activity

            People

            Assignee:
            jerome Jérôme Mouneyrac
            Reporter:
            mylescarrick Myles Carrick
            Tester:
            Tim Hunt
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Jan/09