fix: fix permission check
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>
This commit is contained in:
parent
25d378ae16
commit
8353de9c15
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in New Issue