Merge pull request #5479 from nextcloud/pr-5459-follow-up

Also allow group admins to toogle the storage location
This commit is contained in:
Morris Jobke 2017-06-20 10:47:50 -05:00 committed by GitHub
commit b556c4855c
1 changed files with 8 additions and 10 deletions

View File

@ -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');
}
}
});