mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 12:41:10 +01:00
Fix mail ACL popup dialog does not make delete button readonly for account owner
This commit is contained in:
parent
c8b64fa265
commit
a93ab11a60
@ -62,10 +62,10 @@ class mail_acl
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Edit folder ACLs for account(s)
|
* Edit folder ACLs of account(s)
|
||||||
*
|
*
|
||||||
* @param string $msg
|
* @param string $content = null
|
||||||
* @param array $content
|
* @param array $msg = ''
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function edit(array $content=null ,$msg='')
|
function edit(array $content=null ,$msg='')
|
||||||
@ -157,7 +157,7 @@ class mail_acl
|
|||||||
$msg .= "\n".lang("Error: Could not save ACL").' '.lang("reason!");
|
$msg .= "\n".lang("Error: Could not save ACL").' '.lang("reason!");
|
||||||
}
|
}
|
||||||
//Send message
|
//Send message
|
||||||
egw_framework::refresh_opener($msg, 'mail', 'update');
|
egw_framework::refresh_opener($msg, 'mail',null, 'update');
|
||||||
if ($button == "apply") break;
|
if ($button == "apply") break;
|
||||||
|
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ class mail_acl
|
|||||||
{
|
{
|
||||||
error_log(__METHOD__.__LINE__. "()" . "The remove_acl suppose to return an array back, something is wrong there");
|
error_log(__METHOD__.__LINE__. "()" . "The remove_acl suppose to return an array back, something is wrong there");
|
||||||
}
|
}
|
||||||
egw_framework::refresh_opener($msg, 'mail', 'update');
|
egw_framework::refresh_opener($msg, 'mail', null,'update');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$readonlys = $sel_options = array();
|
$readonlys = $sel_options = array();
|
||||||
@ -184,8 +184,8 @@ class mail_acl
|
|||||||
//Make the delete buttons readonly for entry filed and account owner
|
//Make the delete buttons readonly for entry filed and account owner
|
||||||
foreach($content['grid'] as $key => $field)
|
foreach($content['grid'] as $key => $field)
|
||||||
{
|
{
|
||||||
if ($field['acc_id'] == $this->mail_bo->icServer->acc_name ||
|
if ($field['acc_id'] == $this->mail_bo->icServer->acc_imap_username ||
|
||||||
$field['acc_id'][0] == $this->mail_bo->icServer->acc_name)
|
$field['acc_id'][0] == $this->mail_bo->icServer->acc_imap_username)
|
||||||
{
|
{
|
||||||
$readonlys['grid']['delete['.$key.']'] = true;
|
$readonlys['grid']['delete['.$key.']'] = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user