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

Incorrect context and name of capability moodle/course:browse

XMLWordPrintable

    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-65354-master
    • Hide
      1. Log in as admin.
      2. Go to Site administration > Users > Permissions > Capability overview
      3. Search for moodle/course:browse
      4. Make sure it does not find that capability.
      5. Now, search for moodle/category:viewcourselist and set the roles field to All.
      6. Make that new capability exists and it is ALLOWED to: Authenticated user and Guest

      There shouldn't be any behat and PHP Unit failures.

      Show
      Log in as admin. Go to Site administration > Users > Permissions > Capability overview Search for moodle/course:browse Make sure it does not find that capability. Now, search for moodle/category:viewcourselist and set the roles field to All . Make that new capability exists and it is ALLOWED to: Authenticated user and Guest There shouldn't be any behat and PHP Unit failures.

      As stronk7 pointed out in https://tracker.moodle.org/browse/MDL-10965?focusedCommentId=666186&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-666186

      the definition capability moodle/course:browse has incorrect context (should be category) and could be renamed to better indicate what it does.

            lameze Simey Lameze
            marina Marina Glancy
            Mihail Geshoski Mihail Geshoski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 35 minutes
                5h 35m

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