3
0
Fork 0
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:
Michael Stenta 2020-11-30 16:19:14 -05:00
parent a1dd6ba93d
commit 7afab5d678

View file

@ -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'];
}