Hi,
Do we has feature such as adding Rule to a permission?
Let's images that we has a post Editor Role (with permissions as follow create/ update/ delete a post )
To pass checking permissions Update and delete a post, user needs satisfy two conditions:
- Assigned to Editor Role
- Be the author of the current post (Rule is a piece of code which do logic, ex: $post->created_by = $currentUserId) ==> So how to do that?**