UI: Improve permission checks #98

This commit is contained in:
Timo Volkmann 2021-10-15 09:52:29 +02:00
parent 9811c86ee8
commit c8c7de09d5
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
</template> </template>
<v-btn <v-btn
v-if="features.share" v-if="features.share && hasPermission(aclResources.ResourceAlbums, aclActions.ActionShare)"
fab dark small fab dark small
:title="$gettext('Share')" :title="$gettext('Share')"
color="share" color="share"

View file

@ -23,7 +23,7 @@
</template> </template>
<v-btn <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 small
:title="$gettext('Share')" :title="$gettext('Share')"
color="share" color="share"