Update roles and nickname fields to be optiona#190
Conversation
|
Do we no longer need to specify the department and role when creating a user? |
|
No, if you register via the registration link in the login screen, it will only contain the username, password and email address. If you add a user through the backend, you can select the department and role directly, and the department and role are useful for backend permission checking. Here the front and back end you can understand: Users look at the information presentation interface, the background staff can see the management interface |
|
I understand what you mean. |
|
Departments and roles have to be assigned centrally by the administrator, as it's a matter of permissions I don't think user registration should include departments and roles, but rather assign them at a later stage |
|
Adding new users will be divided into two interfaces
Ongoing, subject to prioritized review #191 |
|
When is the later stage allocation? |
|
This is exactly what the staff field is for, users don't support backend admin login by default, which means they can't see the backend admin interface unless the administrator assigns rights to it When no role menu is assigned, we need to modify the front-end to set the dashboard to be owned by all users by default, to avoid displaying the 404 interface directly |
|
This is designed to differentiate between external users and insiders, however, we will not be implementing anything related to the external user interface |
# Conflicts: # backend/app/crud/crud_user.py
* Update roles and nickname fields to be optional * Update the department and role fields is optional * fix role judgment * New add user interface * update interface permissions * fix nickname judgment
PLR.