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

Allow repository to tell when it is accessible for this user in this context

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Inactive
    • Icon: Minor Minor
    • None
    • 2.3
    • Repositories
    • MOODLE_23_STABLE
    • wip-MDL-32058-master
    • Hide

      Main improvement is that 'Server files' repository is now only accessible for people with 'moodle/course:managefiles' capability in at least one course. This is usually Teacher role.

      When testing try to login as admin, teacher and/or student and make sure that 'Server files' repository in filepicker appears only to admin and teacher.

      Show
      Main improvement is that 'Server files' repository is now only accessible for people with 'moodle/course:managefiles' capability in at least one course. This is usually Teacher role. When testing try to login as admin, teacher and/or student and make sure that 'Server files' repository in filepicker appears only to admin and teacher.

      When populating the list of available repositories instead of hardcoding one check for all with exception for particular repository (see https://github.com/moodle/moodle/blob/master/repository/lib.php#L840 ), implement callback in repository class. Overwrite for children if needed.
      At the moment repository_coursefiles has it's own check
      and also repository_local should also have it's own check - it is not to be shown for the people who don't have 'managefile' capability in at least one course

            Unassigned Unassigned
            marina Marina Glancy
            Dongsheng Cai Dongsheng Cai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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