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()
|
||||
}
|
||||
|
||||
if (authStore.role === 'GlobalAdmin') {
|
||||
await configStore.getAdvancedConfig()
|
||||
}
|
||||
|
||||
await configStore.getPlayoutConfig()
|
||||
await configStore.getUserConfig()
|
||||
await mediaStore.getTree('')
|
||||
@ -246,8 +249,12 @@ async function deleteChannel() {
|
||||
})
|
||||
|
||||
i.value = configStore.i - 1
|
||||
await configStore.getChannelConfig()
|
||||
|
||||
if (authStore.role === 'GlobalAdmin') {
|
||||
await configStore.getAdvancedConfig()
|
||||
}
|
||||
|
||||
await configStore.getChannelConfig()
|
||||
await configStore.getPlayoutConfig()
|
||||
await configStore.getUserConfig()
|
||||
await mediaStore.getTree('')
|
||||
|
@ -181,7 +181,11 @@ function logout() {
|
||||
|
||||
function selectChannel(index: number) {
|
||||
configStore.i = index
|
||||
|
||||
if (authStore.role === 'GlobalAdmin') {
|
||||
configStore.getAdvancedConfig()
|
||||
}
|
||||
|
||||
configStore.getPlayoutConfig()
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ export const useConfig = defineStore('config', {
|
||||
await this.getPlayoutConfig()
|
||||
await this.getUserConfig()
|
||||
|
||||
if (this.configUser.id === 1) {
|
||||
if (authStore.role === 'GlobalAdmin') {
|
||||
await this.getAdvancedConfig()
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user