Refactor, no longer need parameter passed to Auth functions

This commit is contained in:
Alicia Sykes
2021-08-20 21:51:43 +01:00
parent d54bb517db
commit b71e1548ee
4 changed files with 4 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ export default {
methods: {
shouldAllowWriteToDisk() {
const { appConfig } = this.config;
return appConfig.allowConfigEdit !== false && isUserAdmin(appConfig.auth);
return appConfig.allowConfigEdit !== false && isUserAdmin();
},
save() {
if (this.saveMode === 'local' || !this.allowWriteToDisk) {