UI: Improve permission checks #98
This commit is contained in:
parent
9811c86ee8
commit
c8c7de09d5
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
|||
</template>
|
||||
|
||||
<v-btn
|
||||
v-if="features.share"
|
||||
v-if="features.share && hasPermission(aclResources.ResourceAlbums, aclActions.ActionShare)"
|
||||
fab dark small
|
||||
:title="$gettext('Share')"
|
||||
color="share"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</template>
|
||||
|
||||
<v-btn
|
||||
v-if="context !== 'archive' && context !== 'review' && features.share" fab dark
|
||||
v-if="context !== 'archive' && context !== 'review' && features.share && hasPermission(aclResources.ResourcePhotos, aclActions.ActionShare)" fab dark
|
||||
small
|
||||
:title="$gettext('Share')"
|
||||
color="share"
|
||||
|
|
Loading…
Reference in a new issue