Closed cudillal closed 5 months ago
Yes, it's true. In the Django user model there are these fields by default. Previously we decided with Swarna to keep them as they are and define if user is Manager by checking both parameters have True. If it's a normal user, so both of the params have False. Not sure it's a bug, but it can be changed if needed.
I don't think there's anything to test, you can probably just close the issue @sergiocontrino
yes, remove any logic in the fe involving the staff is for the moment the right solution, closing.
The DB contains 2 different 'role' fields for a
User
:isSuperUser
andisStaff
, but both are required to beTrue
for aUser
to beManager
on the app: https://github.com/ecrin-github/rms-portal-new/blob/2b29c666224c03c4a4775585351e20ac8e622533/src/app/pages/internal/main-page/internal-main-page.component.ts#L59 https://github.com/ecrin-github/rms-portal-new/blob/2b29c666224c03c4a4775585351e20ac8e622533/src/app/pages/internal/main-page/internal-main-page.component.ts#L76