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

Policy plugin still refers to a capability that been dropped

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: None
    • Component/s: Privacy
    • Labels:
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE

      Description

      The current tool_policy code still contains a reference to the capability tool/policy:manageprivacy in its admin/tool/policy/settings.php file. This then leads to a warning spotted by Helen Foster at gdprdemo.moodle.net (when logging in as dpo user):

      Capability "tool/policy:manageprivacy" was not found! This has to be fixed in code.
      line 416 of /lib/accesslib.php: call to debugging()
      line 536 of /lib/accesslib.php: call to has_capability()
      line 38 of /admin/tool/policy/settings.php: call to has_any_capability()
      line 81 of /lib/classes/plugininfo/tool.php: call to include()
      line 598 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
      line 8000 of /lib/adminlib.php: call to require()
      line 7885 of /lib/adminlib.php: call to admin_get_root()
      line 24 of /admin/search.php: call to admin_externalpage_setup()
       
      Capability "tool/policy:manageprivacy" was not found! This has to be fixed in code.
      line 416 of /lib/accesslib.php: call to debugging()
      line 536 of /lib/accesslib.php: call to has_capability()
      line 38 of /admin/tool/policy/settings.php: call to has_any_capability()
      line 81 of /lib/classes/plugininfo/tool.php: call to include()
      line 598 of /admin/settings/plugins.php: call to core\plugininfo\tool->load_settings()
      line 8000 of /lib/adminlib.php: call to require()
      line 26 of /admin/search.php: call to admin_get_root()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: