Can I use this library for sharing entities between users? #1813
Replies: 2 comments 2 replies
-
https://spatie.be/docs/laravel-permission/v4/best-practices/roles-vs-permissions Maybe you can get my idea for this (#1804) shared todolist (id: 1) must be a pivot on So now you can assign the same permission for granular shared todolist, On #1782 i better explain my method
I don´t know, i believe that you don't have many permissions, so no cache problems, but if you have a lot todolist maybe if you make relation load all at start |
Beta Was this translation helpful? Give feedback.
-
I am not sure if I get your idea right: Do you mean I still need additional pivot tables for the shared todolists? aka user_todolist_table which holds user_id and todolist_id? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I really like this library and already read through the docs. Currently I am trying to find out if I can use it for some kind of sharing mechanism. I am not sure if there will be a performance problem because I would need a lot of custom permissions.
Think of it like a simple todolist app:
User A wants to share todolist (id: 1) with user B. So both users get permissions to access todolist (id: 1). Maybe there will be more specific permissions what users can do with shared todolists (edit, delete, share..).
Problem:
N todolists require n permissions (+ specific permissions as mentioned above).
Can I use this library for that kind of mechanism or will there be performance problems? Should I implement it differently (like defining permission tables)?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions