mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Also allow group admins to toogle the storage location
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
2660a3b49c
commit
e30ed1de84
1 changed files with 8 additions and 10 deletions
|
|
@ -1062,17 +1062,15 @@ $(document).ready(function () {
|
|||
// Option to display/hide the "Storage location" column
|
||||
$('#CheckboxStorageLocation').click(function() {
|
||||
if ($('#CheckboxStorageLocation').is(':checked')) {
|
||||
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true', {
|
||||
success: function () {
|
||||
$("#userlist .storageLocation").show();
|
||||
}
|
||||
});
|
||||
$("#userlist .storageLocation").show();
|
||||
if (OC.isUserAdmin()) {
|
||||
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true');
|
||||
}
|
||||
} else {
|
||||
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false', {
|
||||
success: function () {
|
||||
$("#userlist .storageLocation").hide();
|
||||
}
|
||||
});
|
||||
$("#userlist .storageLocation").hide();
|
||||
if (OC.isUserAdmin()) {
|
||||
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue