Skip to content

ABAC in Auth Model with self relation #402

Closed Answered by velmohan
velmohan asked this question in Q&A
Discussion options

You must be logged in to vote

I found the mistake in my auth model. The can_delete permission should be defined as

    define can_delete: can_delete_draft from draft_status or can_delete_published from published_status

instead of

    define can_delete: (draft_status and can_delete_draft) or (published_status and can_delete_published)

Replies: 1 comment

Comment options

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