-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Consolidate dbproxy and user models #461
base: main
Are you sure you want to change the base?
Conversation
d189215
to
220e96c
Compare
6a73ced
to
c2293eb
Compare
c2293eb
to
3dc117a
Compare
@dmohns Can you take a look at this when you find the time. Thanks |
529a885
to
fc55789
Compare
Update on this: this has been resolved by filtering the users based on their associated company id, that is admin user can only see users associated with the company id. |
With this refactor we migrate User model to the root micropowermanager database. Following, we consolidate database proxy model by resolving company id from user table directly from database proxy services. Consideration for this refactor is that, admin users can see every user on the users table from the user management admin page. This might have the effect or leaking admin accounts to other admin user.
fc55789
to
f8f91d9
Compare
Brief summary of the change made
With this refactor we migrate User model to the root micropowermanager database. Following, we consolidate database proxy model by resolving company id from user table directly from database proxy services.
Consideration for this refactor is that, admin users can see every user on the users table from the user management admin page.
This might have the effect or leaking admin accounts to other admin user.
Closes: #267
Are there any other side effects of this change that we should be aware of?
Describe how you tested your changes?
Pull Request checklist
Please confirm you have completed any of the necessary steps below.