Skip to content

Commit

Permalink
fixed edit collection permission for non-admin user
Browse files Browse the repository at this point in the history
  • Loading branch information
zurdi15 committed Jul 5, 2024
1 parent 7fafef0 commit 91dcec3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Gallery/AppBar/Collection/Base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const auth = storeAuth();
<v-menu location="bottom">
<template #activator="{ props }">
<v-btn
v-if="auth.scopes.includes('roms.write')"
v-if="auth.scopes.includes('collections.write')"
v-bind="props"
rounded="0"
variant="text"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/common/Game/AdminMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const auth = storeAuth();
<v-divider />
</template>
<v-list-item
v-if="auth.scopes.includes('collections.write')"
class="py-4 pr-5"
@click="emitter?.emit('showAddToCollectionDialog', [{ ...rom }])"
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Play/Base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ onMounted(async () => {
:md="!gameRunning ? 8 : 4"
:xl="!gameRunning ? 6 : 2"
>
<v-row class="px-3" no-gutters>
<v-row class="px-3 mt-6" no-gutters>
<v-col>
<v-img
class="mx-auto"
Expand Down

0 comments on commit 91dcec3

Please sign in to comment.