mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-10 00:37:54 +02:00
Fix access UI to take user's permissions into account, and not let them try to edit run rights
This commit is contained in:
@ -468,6 +468,11 @@ app.classes.admin = AppJS.extend(
|
||||
{
|
||||
content.acl_location = this.et2.getWidgetById('filter').getValue() == 'run' ? 'run' : null;
|
||||
}
|
||||
// If no admin rights, change UI to not allow adding access to apps
|
||||
if(content.acl_location == 'run' && !egw.user('apps')['admin'])
|
||||
{
|
||||
content.acl_location = null;
|
||||
}
|
||||
if(content.acl_location == 'run')
|
||||
{
|
||||
// These are the apps the account has access to
|
||||
|
Reference in New Issue
Block a user