Remove Super-Admin role, bugfix if user enters buggy SQL injection on search field

This commit is contained in:
2024-11-27 19:29:03 +01:00
parent b74da2dc3b
commit 947ed225b6
5 changed files with 13 additions and 21 deletions

View File

@@ -91,7 +91,7 @@ export const useAccountStore = defineStore("accountStore", {
this.privilegeBuy = true
this.adminPanelVisible = response.data.accountRole.privilegeAdminPanel
if (response.data.accountRoleId == 3) {
if (response.data.accountRoleId == 2) {
exerciseStore.solveExercise(2, 5)
}
})

View File

@@ -119,7 +119,6 @@ export const useBasketStore = defineStore('basketStore', {
for (let item of this.itemsInBasket) {
if (!item.concert.offered) {
exerciseStore.solveExercise(1, 2)
feedbackStore.addSnackbar(BannerStateEnum.EXERCISESOLVED12)
}
}