-
Hello there! I have three models: User, Role, Permission, which are all connected via many-to-many communication. Could you please tell me how I can get all the permissions for a specific user?
|
Beta Was this translation helpful? Give feedback.
Answered by
devkral
Jan 21, 2025
Replies: 1 comment
-
First: https://edgy.dymmond.com/permissions/intro/ You will save a lot of time. If you still want to do it yourself have a look in https://github.com/dymmond/edgy/blob/main/edgy/contrib/permissions/managers.py This is the implementation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YaBatman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First:
I would recommend you to use the edgy contrib permission module:
https://edgy.dymmond.com/permissions/intro/
You will save a lot of time. If you still want to do it yourself have a look in
https://github.com/dymmond/edgy/blob/main/edgy/contrib/permissions/managers.py
This is the implementation.