mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
* Addressbook: Enable upload buttons of smime/pgp pubkeys if user is allowed to modify them.
This commit is contained in:
parent
3c283c8129
commit
c1e8381cee
@ -2416,7 +2416,13 @@ window.egw_LAB.wait(function() {
|
||||
'addressbook.edit.upload' => false
|
||||
));
|
||||
}
|
||||
if (!$readonlys['pubkey'])
|
||||
{
|
||||
$readonlys['addressbook:'.$content['id'].':.files/pgp-pubkey.asc'] =
|
||||
$readonlys['addressbook:'.$content['id'].':.files/smime-pubkey.crt'] = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($readonlys['n_fileas'])) $readonlys['fileas_type'] = $readonlys['n_fileas'];
|
||||
// disable not needed tabs
|
||||
$readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']);
|
||||
|
@ -178,11 +178,11 @@
|
||||
</row>
|
||||
<row valign="top">
|
||||
<description value="SMIME key"/>
|
||||
<vfs-upload id="addressbook:$cont[id]:.files/smime-pubkey.crt" accept=".crt,.pem,application/x-x509-ca-cert,application/x-x509-user-cert" mime="/application\/x-x509-(ca|user)-cert/" callback="addressbook.addressbook_ui.pubkey_uploaded"/>
|
||||
<vfs-upload id="addressbook:$cont[id]:.files/smime-pubkey.crt" accept=".crt,.pem,application/x-x509-ca-cert,application/x-x509-user-cert" mime="/application\/(x-x509-(ca|user)|pkix)-cert/" callback="addressbook.addressbook_ui.pubkey_uploaded"/>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<description value="PGP key"/>
|
||||
<vfs-upload id="addressbook:$cont[id]:.files/pgp-pubkey.asc" accept=".asc,application/pgp-keys" mime="application/pgp-keys" callback="addressbook.addressbook_ui.pubkey_uploaded"/>
|
||||
<vfs-upload id="addressbook:$cont[id]:.files/pgp-pubkey.asc" accept=".asc,application/pgp-keys" mime="/(application\/pgp-keys|text\/plain)/" callback="addressbook.addressbook_ui.pubkey_uploaded"/>
|
||||
</row>
|
||||
<row valign="top">
|
||||
<description for="pubkey" value="Public key"/>
|
||||
|
Loading…
Reference in New Issue
Block a user