X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FPermission.php;h=47b0350d7b8e8d0bbd526e7c594dc1021688f24c;hb=d8c1f86a82922cc8accf1b6e3f5d2b8f62efab3d;hp=aeeb34ff4c370b0b137decaec6e63cab14f8b02b;hpb=cf2f87fbef5139c29a81e126d449d2d084066d55;p=civicrm-core.git diff --git a/CRM/Core/Permission.php b/CRM/Core/Permission.php index aeeb34ff4c..47b0350d7b 100644 --- a/CRM/Core/Permission.php +++ b/CRM/Core/Permission.php @@ -335,7 +335,7 @@ class CRM_Core_Permission { /** * @param int $type - * @param null $prefix + * @param string $prefix * @param bool $returnUFGroupIds * * @return array|string @@ -752,6 +752,14 @@ class CRM_Core_Permission { 'administer reserved tags' => [ $prefix . ts('administer reserved tags'), ], + 'administer queues' => [ + $prefix . ts('administer queues'), + ts('Initialize, browse, and cancel background processing queues'), + // At time of writing, we have specifically omitted the ability to edit fine-grained + // data about specific queue-tasks. Tasks are usually defined as PHP callables... + // and one should hesitate before allowing open-ended edits of PHP callables. + // However, it seems fine for web-admins to browse and cancel these things. + ], 'administer dedupe rules' => [ $prefix . ts('administer dedupe rules'), ts('Create and edit rules, change the supervised and unsupervised rules'),