mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-03 13:18:57 -04:00
Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles
# Conflicts: # app/assets/stylesheets/main.scss # app/templates/views/find-users/user-information.html # app/templates/views/two-factor-webauthn.html # app/templates/views/user-profile/manage-security-key.html # app/templates/views/user-profile/security-keys.html # gulpfile.js
This commit is contained in:
@@ -1058,10 +1058,6 @@ class BasePermissionsForm(StripWhitespaceForm):
|
||||
login_authentication=user.auth_type
|
||||
)
|
||||
|
||||
# If a user logs in with a security key, we generally don't want a service admin to be able to change this.
|
||||
# As well as enforcing this in the backend, we need to delete the auth radios to prevent validation errors.
|
||||
if user.webauthn_auth:
|
||||
del form.login_authentication
|
||||
return form
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user