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

Users with course creation permission at category level should see 'Create new course' on an empty My overview block

XMLWordPrintable

    • Moppies Kanban

      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 'Create new course' link behind the 'No courses' text.

      We are usingĀ core_course_category::user_top() to check whether the user has course management permission at any of the categories. At MDL-73549 a new get_nearest_editable_subcategory function has been created, and we should use it to decide whether to show or not to show the link to create new courses.

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

            amaia Amaia Anabitarte
            amaia Amaia Anabitarte
            Carlos Escobedo Carlos Escobedo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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