Restricting editing to admins of the group a post belongs to

Given that:

  • I have a post model
  • Every post belongs to a group
  • A group can be administered by any number of users

How do I configure posts so that they can only be edited by admins of the group they belong to?

Have a look at this thread and the Loom video I posted.

It’s not exactly the same problem but it’s similar for sure.