Closed regisb closed 1 year ago
Whenever an admin modifies the roles assigned to a user, the following warning pops up:
This means that it's basically not possible to customize the permissions associated to a user.
Instead, we could/should do the following:
AUTH_ROLES_SYNC_AT_LOGIN = False
_oauth_calculate_user_roles
Base.SecurityManager.auth_user_oauth
Did you check that this new feature actually works, and that we don't need to change the _oauth_calculate_user_roles function?
@regisb yes, it works without changing _oauth_calculate_user_roles function.
Whenever an admin modifies the roles assigned to a user, the following warning pops up:
This means that it's basically not possible to customize the permissions associated to a user.
Instead, we could/should do the following:
AUTH_ROLES_SYNC_AT_LOGIN = False
_oauth_calculate_user_roles
method, which will be called only at user creation byBase.SecurityManager.auth_user_oauth
.