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

Users with course management or creation permission at category level should see 'Manage courses' or 'New course' on My courses page

XMLWordPrintable

    • 0
    • HQ Team International CIH2-217, HQ Team International CIH2-218, HQ Team International CIH2-219

      Steps to reproduce:

      1. Create a new user and give them 'Course creator' role at one of the categories.
      2. Log in as the new user and go to My courses page.
      3. The user should see a kebab menu with 'Manage courses' and 'New course' options that lead them to the category where they have proper permission.

       

      We are using core_course_category::user_top() to check whether the user has course management permission at any of the categories. Looking at the doc block of that function it seems should return the top category where the user has management permissions.

      But the current behavior is that this is working when the user has permission at site level only.

       

            huongn@moodle.com Huong Nguyen
            amaia Amaia Anabitarte
            Amaia Anabitarte Amaia Anabitarte
            Ilya Tregubov Ilya Tregubov
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 2 hours
                4d 2h

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