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

Allow targets to override access control to predictions

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: Analytics
    • Labels:
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      Predictions access control is ruled by moodle/analytics:listinsights capability and they are accessed through report/insights/insights.php and report/insights/prediction.php.

      insights.php lists prediction model insights in a context (e.g. ?modelid=X&contextid=Y) and prediction.php shows a prediction. It does make sense to let listinsights capability to control the access to the list of insights in a context, but we may want to show predictions to users without listinsight capabilities in the context predictions are part of.

      An example of this is any model where the analysable is a course and samples are course students; teachers have listinsights capability at course level, but students don't and they shouldn't because otherwise they would have access to all predictions at course level, but a model may want to show student predictions to students as well, not only to teachers.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dmonllao David Monllaó
                Participants:
                Component watchers:
                Elizabeth Dalton, David Monllaó
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: