Show models based on a users role #2176
marvimarv
started this conversation in
Help Wanted
Replies: 1 comment 1 reply
-
Role based access controls are planned and the next big project I'm working on for the repo.
So am I :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone. I am working on a small admin-backend for my university which already allows to set tokenCredits so we can manage how much tokens a user can use. I am now looking for the place inside the code where the fetching of the models is done to intercept this and only show models based on a users role that can be set from the backend as well.
At the moment my backend is connected to the MongoDB database directly and just setting the specified tokens there. I would do the same for the roles and basically just need to place a function in the code where the models are being set to be dependent on a role.
It would be great for someone to point me into the right direction. Of course I will be sharing my finished backend if anyone would like to use it :-)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions