Teams feature cannot manage authorization above the team's scope #2349
-
In my application, an organization has multiple events, and a user can have multiple roles in different events, Until now it's all good I can just work with teams considering the event is the team, But the problem is that I have some roles that are focused to the organization ex: Is there any way I can assign different roles in different events (teams) for the user, along with the ability to assign some roles outside of the events for some users ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Yes, read documentation |
Beta Was this translation helpful? Give feedback.
-
Eventually, after searching and asking other senior engineers I ended up going with the polymorphic solution :
It's a little complicated, but here is the breakdown of the steps :
|
Beta Was this translation helpful? Give feedback.
Eventually, after searching and asking other senior engineers I ended up going with the polymorphic solution :
It's a little complicated, but here is the breakdown of the steps :
Polymorphic Relationship:
teams
table and theevents
andorganizations
tables. This allows a team to belong to either an event or an organization.Creating Teams for Organizations: