Edit roles by capability

Administration tools ::: tool_editrolesbycap
Maintained by TimTim Hunt, Anupama Sarjoshi
A Moodle admin tool to edit the permissions for one capability in all roles on one screen.
Latest release:
610 sites
111 downloads
43 fans
Current versions available: 6

Install this plugin into the admin/tool folder, in a subfolder called editrolesbycap.

You will get a new entry under Site administration -> Users -> Permissions that lets you select a capability, and then edit the permission for that capability in all role definition.

Screenshots

Screenshot #0

Contributors

Tim
Tim Hunt (Lead maintainer)
Anupama Sarjoshi: Developer
Please login to view contributors details and/or to contact them

Comments RSS

הצגת הערות
  • Matthew Koelling
    2/08/2013, 04:03
    Hi Tim

    Is there a plan to make this plug-in available for Moodle 2.5
  • Tim
    2/08/2013, 04:24
    I bet the Moodle 2.4 version of the plugin works in Moodle 2.5, but I have not tested it yet. I suggest you try it.
  • Tim
    2/08/2013, 05:14
    Actually, I just tested this myself quickly, and as far as I can see, this works find in Moodle 2.5, so I updated the listing to say that.
  • Matthew Koelling
    5/08/2013, 23:22
    Thank you Tim!
  • Nadav Kavalerchik
    12/01/2014, 02:11
    Very useful. Thanks חיוך

    BTW, I made a useful SQL query that compare Role capabilities
    (If you are using block/configurable_reports or ad-hoc system reports)
    http://docs.moodle.org/26/en/ad-hoc_contributed_reports#Compare_role_capability_and_permissions
  • Chirag Patel
    25/02/2014, 12:37
    hey tim fro moodle 2.3 it gives erroe like this!!,

    .Plugin "block/block_graph_stats_moodle23_2012062500" is defective or outdated, can not continue, sorry.

    More information about this error

    Debug info: Missing version.php file.
    Error code: detectedbrokenplugin
    Stack trace:
    ◦line 699 of \lib\upgradelib.php: plugin_defective_exception thrown
    ◦line 360 of \lib\upgradelib.php: call to upgrade_plugins_blocks()
    ◦line 1524 of \lib\upgradelib.php: call to upgrade_plugins()
    ◦line 329 of \admin\index.php: call to upgrade_noncore()
  • Tim
    16/12/2015, 01:38
    This plugin works in Moodle 3.0.

    Note that the automated Behat test fails, which I think is just because of some change in the Behat testing system. That needs to be fixed at some point, but not now.
  • Tim
    10/06/2020, 06:41
    Tested and confirmed: the latest version of this plugin works with Moodle 3.9.
  • C’est moi (il y a quelques années) :-)
    13/12/2024, 18:16
    I've just installed and used it with Moodle 4.3 (on servers using PHP 8.0 or 8.2), with no problem.
    Just a little detail when looking at logs generated :
    The user id id '3' has unassigned the 'mod/lti:requesttooladd' capability for role '3'
    should better be :
    The user with id '3' has unassigned the 'mod/lti:requesttooladd' capability for role '3'
  • Tim
    14/12/2024, 01:25
    @Séverin, I agree with you, but that is nothing to do with this plugin. The logging of changing the role definition is done my Moodle core (where the assign_capability function in accesslib.php fires \core\event\capability_assigned). So, changing this would require a Tracker issue.
Please login to post comments