Skip to content

Commit

Permalink
use objectId to check permissions for button display
Browse files Browse the repository at this point in the history
  • Loading branch information
TimCsaky committed Aug 10, 2023
1 parent 0554f66 commit 35626b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/object/ObjectVersion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ watch( getVersions, () => {
<template #body="{ data }">
<DownloadObjectButton
v-if="data.public || permissionStore.isObjectActionAllowed(
data.id, getUserId, Permissions.READ, props.bucketId as string)"
props.objectId, getUserId, Permissions.READ, props.bucketId as string)"
:mode="ButtonMode.ICON"
:ids="[props.objectId]"
:version-id="data.id"
Expand All @@ -165,15 +165,15 @@ watch( getVersions, () => {
>
<Button
v-if="data.public || permissionStore.isObjectActionAllowed(
data.id, getUserId, Permissions.READ, props.bucketId as string)"
props.objectId, getUserId, Permissions.READ, props.bucketId as string)"
class="p-button-lg p-button-rounded p-button-text"
>
<font-awesome-icon icon="fa-solid fa-circle-info" />
</Button>
</router-link>
<DeleteObjectButton
v-if="permissionStore.isObjectActionAllowed(
data.id, getUserId, Permissions.DELETE, props.bucketId as string)"
props.objectId, getUserId, Permissions.DELETE, props.bucketId as string)"
:mode="ButtonMode.ICON"
:ids="[props.objectId]"
:version-id="data.id"
Expand Down

0 comments on commit 35626b9

Please sign in to comment.