Skip to content

Wrong parameters are being handed into my custom permission classes #9220

Discussion options

You must be logged in to vote

I figured it out, I needed to hand in instances, not classes.

return [CanGloballyEdit()] + default_permissions

But how do you | or those together?

Like this?

combined = (UserCreated | CanGloballyEdit)()
return [combined] + default_permissions

This seems to work fine, but is this the intended behavior?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nateonguitar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant