mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
Add some defaults to select-bitwise if no app is specified
This commit is contained in:
parent
fa8381c229
commit
ff120e64da
@ -803,6 +803,21 @@ class Select extends Etemplate\Widget
|
|||||||
{
|
{
|
||||||
$options += (array)Api\Hooks::single(array('location' => 'acl_rights'), $appname);
|
$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)
|
foreach((array)$options as $right => $name)
|
||||||
{
|
{
|
||||||
if(!!($value & $right))
|
if(!!($value & $right))
|
||||||
|
Loading…
Reference in New Issue
Block a user