From ff120e64da3e887ab3f1f3aecd48e4af2f10dd02 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 9 Apr 2019 11:45:14 -0600 Subject: [PATCH] Add some defaults to select-bitwise if no app is specified --- api/src/Etemplate/Widget/Select.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/src/Etemplate/Widget/Select.php b/api/src/Etemplate/Widget/Select.php index f16d7a0604..0f29227445 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -803,6 +803,21 @@ class Select extends Etemplate\Widget { $options += (array)Api\Hooks::single(array('location' => 'acl_rights'), $appname); } + else + { + $options += array( + 'run' => 'Run', + Api\Acl::READ => 'Read', + Api\Acl::ADD => 'Add', + Api\Acl::EDIT => 'Edit', + Api\Acl::DELETE => 'Delete', + Api\Acl::PRIVAT => 'Private', + Api\Acl::GROUPMGRS => 'Group managers', + Api\Acl::CUSTOM1 => 'Custom 1', + Api\Acl::CUSTOM2 => 'Custom 2', + Api\Acl::CUSTOM3 => 'Custom 3', + ); + } foreach((array)$options as $right => $name) { if(!!($value & $right))