we've got a system in which users are storing their creations(instances of models) in a database. Users can decide to share their creations with other users or groups of users.
My idea here is to associate the ID of a creation to a Permission in deadbolt and associate that Permission with a Subject.
What is the best way to do this? Should I even aim for deadbolt for this purpose or are there other frameworks/patterns to implement?