Capability explorer

Administration tool ::: tool_capexplorer
Maintained by Simon CogginsSimon Coggins
An admin tool designed to help Moodle administrators understand how Moodle's capability system works.
Latest release:
53 sites
4 downloads
15 fans
Current versions available: 1

Capability explorer is a small admin tool designed to help explain exactly how Moodle's capability system works. Given a user, capability and context the tool will provide a detailed breakdown of the process used to calculate if the capability would be granted to the user in the context specified.

The tool uses the existing system data so you can use it to figure out why a particular user does or doesn't have a capability. It is designed to be complementary to Moodle's other permission tools such as Check system permissions or the Capability Overview Report.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Simon Coggins
Simon Coggins (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • David Mudrák
    Fri, 7 Nov 2014, 5:44 PM
    Thanks Simon for sharing this plugin with the Moodle community. I really like the functionality and the UI design and behaviour. It's a great contribution.

    I found a small bug and submitted a pull request into your repository at Github https://github.com/simoncoggins/moodle-tool_capexplorer/pull/1 You may want to release an updated version with it soon.

    In the styles.css file, some CSS selectors like `.option-disabled` are too general and can eventually affect other areas of Moodle outside the scope of your tool as well. Please make sure your selectors are specific to your plugin only - typically by using something like `.path-admin-tool-capexplorer .your-class-name`.

    Said that, you are cleared to land now. Welcome to the Plugins directory!


  • Simon Coggins
    Sun, 9 Nov 2014, 3:44 PM
    Thanks David,
    I have fixed the url and css issues and pushed a new version.
    Simon
  • ryan sanders
    Tue, 24 Mar 2015, 2:04 AM
    installation error with moodle versions 2.7.5 and 2.7.7

    Capability "tool/capexplorer:view" was not found! This has to be fixed in code.
    line 389 of \lib\accesslib.php: call to debugging()
    line 1292 of \lib\adminlib.php: call to has_capability()
    line 3634 of \lib\navigationlib.php: call to admin_externalpage->check_access()
    line 3666 of \lib\navigationlib.php: call to settings_navigation->load_administration_settings()
    line 3666 of \lib\navigationlib.php: call to settings_navigation->load_administration_settings()
    line 3617 of \lib\navigationlib.php: call to settings_navigation->load_administration_settings()
    line 3466 of \lib\navigationlib.php: call to settings_navigation->load_administration_settings()
    line 719 of \lib\pagelib.php: call to settings_navigation->initialise()
    line 768 of \lib\pagelib.php: call to moodle_page->magic_get_settingsnav()
    line 6581 of \lib\adminlib.php: call to moodle_page->__get()
    line 29 of \admin\tool\installaddon\index.php: call to admin_externalpage_setup()
  • Simon Coggins
    Tue, 24 Mar 2015, 2:29 AM
    Hi Ryan,

    I haven't been able to reproduce that problem in either 2.7.5 or 2.7.7. Would you be able to provide some more details?

    - Can you confirm which method you used to install it? From the error it looks like you used the "Install Plugins" link in the site admin menu but did you install directly from the directory or by uploading a zip file? It would be useful to know exactly how far you get through the install process when that message appears.
    - Did you try installing it multiple times or have any issues with partial installs? The error looks like the menu option was added but the capability couldn't be found which might suggest a partial install. Could you try uninstalling (if it shows up under "Manage Plugins"), removing the whole admin/tool/capexplorer directory and trying again?
    - Do you have any customisations?

    Simon
  • David Mudrák
    Mon, 2 Nov 2015, 5:35 PM

    I am happy to let you know this plugin received the Reviewers' choice award. Well done!

Please login to post comments