load advanced settings only for global admins
This commit is contained in:
parent
fb355e59fc
commit
84e75137b7
@ -222,7 +222,10 @@ async function addUpdateChannel() {
|
|||||||
await updateChannel()
|
await updateChannel()
|
||||||
}
|
}
|
||||||
|
|
||||||
await configStore.getAdvancedConfig()
|
if (authStore.role === 'GlobalAdmin') {
|
||||||
|
await configStore.getAdvancedConfig()
|
||||||
|
}
|
||||||
|
|
||||||
await configStore.getPlayoutConfig()
|
await configStore.getPlayoutConfig()
|
||||||
await configStore.getUserConfig()
|
await configStore.getUserConfig()
|
||||||
await mediaStore.getTree('')
|
await mediaStore.getTree('')
|
||||||
@ -246,8 +249,12 @@ async function deleteChannel() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
i.value = configStore.i - 1
|
i.value = configStore.i - 1
|
||||||
|
|
||||||
|
if (authStore.role === 'GlobalAdmin') {
|
||||||
|
await configStore.getAdvancedConfig()
|
||||||
|
}
|
||||||
|
|
||||||
await configStore.getChannelConfig()
|
await configStore.getChannelConfig()
|
||||||
await configStore.getAdvancedConfig()
|
|
||||||
await configStore.getPlayoutConfig()
|
await configStore.getPlayoutConfig()
|
||||||
await configStore.getUserConfig()
|
await configStore.getUserConfig()
|
||||||
await mediaStore.getTree('')
|
await mediaStore.getTree('')
|
||||||
|
@ -181,7 +181,11 @@ function logout() {
|
|||||||
|
|
||||||
function selectChannel(index: number) {
|
function selectChannel(index: number) {
|
||||||
configStore.i = index
|
configStore.i = index
|
||||||
configStore.getAdvancedConfig()
|
|
||||||
|
if (authStore.role === 'GlobalAdmin') {
|
||||||
|
configStore.getAdvancedConfig()
|
||||||
|
}
|
||||||
|
|
||||||
configStore.getPlayoutConfig()
|
configStore.getPlayoutConfig()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ export const useConfig = defineStore('config', {
|
|||||||
await this.getPlayoutConfig()
|
await this.getPlayoutConfig()
|
||||||
await this.getUserConfig()
|
await this.getUserConfig()
|
||||||
|
|
||||||
if (this.configUser.id === 1) {
|
if (authStore.role === 'GlobalAdmin') {
|
||||||
await this.getAdvancedConfig()
|
await this.getAdvancedConfig()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user