Also allow group admins to toogle the storage location
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
274964f3b7
commit
04998df1ea
|
@ -965,17 +965,15 @@ $(document).ready(function () {
|
||||||
// Option to display/hide the "Storage location" column
|
// Option to display/hide the "Storage location" column
|
||||||
$('#CheckboxStorageLocation').click(function() {
|
$('#CheckboxStorageLocation').click(function() {
|
||||||
if ($('#CheckboxStorageLocation').is(':checked')) {
|
if ($('#CheckboxStorageLocation').is(':checked')) {
|
||||||
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true', {
|
$("#userlist .storageLocation").show();
|
||||||
success: function () {
|
if (OC.isUserAdmin()) {
|
||||||
$("#userlist .storageLocation").show();
|
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'true');
|
||||||
}
|
}
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false', {
|
$("#userlist .storageLocation").hide();
|
||||||
success: function () {
|
if (OC.isUserAdmin()) {
|
||||||
$("#userlist .storageLocation").hide();
|
OCP.AppConfig.setValue('core', 'umgmt_show_storage_location', 'false');
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue