Skip to content

Commit

Permalink
fix admin check display bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Jan 28, 2024
1 parent f7ee84b commit c47a0d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src-frontend/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,7 @@ export default defineComponent({
if (link.memberOnly && this.profile.memberStatus !== 'Active')
displayLink = false;
if (this.$q.platform.is.electron && !link.kiosk) displayLink = false;
if (
link.admin &&
this.profile?.permissions?.staff
) {
if (link.admin && !this.profile?.permissions?.staff) {
displayLink = false;
}
Expand Down

0 comments on commit c47a0d7

Please sign in to comment.