mirror of https://github.com/Lissy93/dashy.git
🔒 Prevents user making themself admin from UI
This commit is contained in:
parent
01e4c0f225
commit
690409d642
|
@ -146,6 +146,7 @@ export default {
|
|||
localStorage.setItem(localStorageKeys.PAGE_INFO, JSON.stringify(data.pageInfo));
|
||||
}
|
||||
if (data.appConfig) {
|
||||
data.appConfig.auth = this.config.appConfig.auth || [];
|
||||
localStorage.setItem(localStorageKeys.APP_CONFIG, JSON.stringify(data.appConfig));
|
||||
}
|
||||
if (data.appConfig.theme) {
|
||||
|
|
Loading…
Reference in New Issue