Show "EPL Only" for quota in edit account & group dialogs

This commit is contained in:
nathan 2022-12-19 13:25:44 -07:00
parent 271ae92e69
commit 0ad1934afc
4 changed files with 7 additions and 4 deletions

View File

@ -91,6 +91,8 @@ class admin_account
'loginshell' => $GLOBALS['egw_info']['server']['ldap_account_shell'], 'loginshell' => $GLOBALS['egw_info']['server']['ldap_account_shell'],
); );
} }
$account['default_quota'] = lang('(EPL Only)');
// should we show extra ldap attributes home-directory and login-shell // should we show extra ldap attributes home-directory and login-shell
$account['ldap_extra_attributes'] = $GLOBALS['egw_info']['server']['ldap_extra_attributes'] && $account['ldap_extra_attributes'] = $GLOBALS['egw_info']['server']['ldap_extra_attributes'] &&
get_class($GLOBALS['egw']->accounts->backend) === 'EGroupware\\Api\\Accounts\\Ldap'; get_class($GLOBALS['egw']->accounts->backend) === 'EGroupware\\Api\\Accounts\\Ldap';

View File

@ -217,6 +217,7 @@ class Groups
} }
$run_rights = $content['account_id'] ? $this->acl->get_user_applications($content['account_id'], false, false) : array(); $run_rights = $content['account_id'] ? $this->acl->get_user_applications($content['account_id'], false, false) : array();
$content['apps'] = $content['old_run'] = array(); $content['apps'] = $content['old_run'] = array();
$content['default_quota'] = lang('(EPL Only)');
foreach($GLOBALS['egw_info']['apps'] as $app => $data) foreach($GLOBALS['egw_info']['apps'] as $app => $data)
{ {
if (!$data['enabled'] || !$data['status'] || $data['status'] == 3) if (!$data['enabled'] || !$data['status'] || $data['status'] == 3)

View File

@ -55,8 +55,8 @@
<description value="Primary group" for="account_primary_group"/> <description value="Primary group" for="account_primary_group"/>
<select-account id="account_primary_group" account_type="groups" class="et2_fullWidth"/> <select-account id="account_primary_group" account_type="groups" class="et2_fullWidth"/>
<description/> <description/>
<description value="Filesystem quota" disabled="!@epl"/> <description value="Filesystem quota"/>
<textbox id="quota" readonly="true" blur="@default_quota"/> <textbox id="quota" disabled="!@epl" blur="@default_quota"/>
<description/> <description/>
</row> </row>
<row> <row>

View File

@ -42,8 +42,8 @@
<url-email id="account_email" size="40" maxlength="64" class="et2_fullWidth"/> <url-email id="account_email" size="40" maxlength="64" class="et2_fullWidth"/>
</row> </row>
<row> <row>
<description value="Filesystem quota" disabled="!@epl"/> <description value="Filesystem quota"/>
<textbox id="quota" readonly="true" blur="@default_quota"/> <textbox id="quota" disabled="!@epl" blur="@default_quota"/>
</row> </row>
</rows> </rows>
</grid> </grid>