You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So,
I have a Membership model, with 3 roles - viewer, member, manager
I created a group for all users that aren't django staff or admins to filter out some processing
My problem is I have to repeat the same calls to get the membership instance to check for the permission.
(A member can be a part of multiple schedules)
As can be seen - each time I have to get the membership...
3 questions came into mind:
Is there a better way to use the access policy module that I'm missing?
Should we implement a "shared" instance for the types of cases?
in the case that I would use the same condition (lets say is_schedule_member would have been called multiple times) shouldn't we cache the result from the first time it was called?
The text was updated successfully, but these errors were encountered:
So,
I have a Membership model, with 3 roles - viewer, member, manager
I created a group for all users that aren't django staff or admins to filter out some processing
My problem is I have to repeat the same calls to get the membership instance to check for the permission.
(A member can be a part of multiple schedules)
As can be seen - each time I have to get the membership...
3 questions came into mind:
The text was updated successfully, but these errors were encountered: