fix: fix permission check

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>
This commit is contained in:
Ciarán Ainsworth 2023-01-20 22:33:08 +00:00 committed by Kasper Seweryn
parent 25d378ae16
commit 8353de9c15
1 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ const configs = useEditConfigs()
const router = useRouter() const router = useRouter()
const store = useStore() const store = useStore()
const canApprove = computed(() => props.obj.is_applied || store.state.auth.authenticated const canApprove = computed(() => !props.obj.is_applied && store.state.auth.availablePermissions.library
? false ? true
: store.state.auth.availablePermissions.library : false
) )
const canDelete = computed(() => { const canDelete = computed(() => {