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

Link "Show/edit current subscribers" on a forum page is controlled by a wrong capability

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Roles / Access
    • Labels:
      None
    • Environment:
      any OS
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Link "Show/edit current subscribers" on a forum page is controlled by a wrong capability:

      see mod/forum/view.php, section print_box('subscription'):
      in two places there is asked for "has_capability('moodle/course:manageactivities', $context)" to control the links concerend with subscription.

      Shouldn't it be: "has_capability('mod/forum:viewsubscribers')"??

      Gisela

        Attachments

          Activity

            People

            Assignee:
            poltawski Dan Poltawski
            Reporter:
            ghillenb Gisela Hillenbrand
            Tester:
            Nicolas Martignoni
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08