kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
fix: fix permission check
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>environments/review-docs-renov-vr2nay/deployments/16781
rodzic
25d378ae16
commit
8353de9c15
|
@ -32,9 +32,9 @@ const configs = useEditConfigs()
|
|||
const router = useRouter()
|
||||
const store = useStore()
|
||||
|
||||
const canApprove = computed(() => props.obj.is_applied || store.state.auth.authenticated
|
||||
? false
|
||||
: store.state.auth.availablePermissions.library
|
||||
const canApprove = computed(() => !props.obj.is_applied && store.state.auth.availablePermissions.library
|
||||
? true
|
||||
: false
|
||||
)
|
||||
|
||||
const canDelete = computed(() => {
|
||||
|
|
Ładowanie…
Reference in New Issue