Plugins not defining capabilities

Plugins not defining capabilities

by Martin Greenaway -
Number of replies: 0

Hi all,

As someone who has built quite a lot of very specific custom plugins, I'm all too familiar with the capability system and how it is used to grant users of certain roles access to functionality within a plugin.

Is there a reason why many of the plugins in the plugin database don't seem to check for their own specific capabilities and just go with a generic "site:config" capability for their management, restricting their use to site admins?

As specific examples, a site admin can't grant specific site managers an extra role that just allows them to manage local_cohortrole, local_cohortauto or local_profilecohort. If I want one of my site managers to be able to set up all the cohort/role/course mapping, they have to be a full site admin.

Is there a specific reason behind this that I'm missing, or is this just a design choice by each developer/development team?

Regards,

Martin

Average of ratings: -