mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add "view any/own asset/log" permissions to managed roles.
This commit is contained in:
parent
a1dd6ba93d
commit
7afab5d678
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,8 @@ class ManagedRolePermissionsManager extends DefaultPluginManager implements Mana
|
|||
|
||||
// View.
|
||||
if (!empty($entity_settings['view all'])) {
|
||||
$perms[] = 'view any ' . $entity_type;
|
||||
$perms[] = 'view own ' . $entity_type;
|
||||
$permission_rules[$entity_type]['view any'] = ['all'];
|
||||
$permission_rules[$entity_type]['view own'] = ['all'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue