- Issue created by @Liam Morland
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:57pm 4 January 2024 - π¨π¦Canada Liam Morland Ontario, CA π¨π¦
This patch creates permission
bypass auto_username
. Anyone with this permission does not have their username changed.An issue with this is that it means the administrator user is unavoidably exempted. Potential solutions:
- A config variable that skips the permission check for admins.
- Instead of a permission, have a config variable that stores which roles should be exempted.
- π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Another way of managing this would be to create a hook which gets invoked in
auto_username_user_insert()
. Modules could implement this hook to change what the username gets updated to or to cancel having it get updated. This would give lots of flexibility to developers. - π³πΏNew Zealand jlscott
jayelless β made their first commit to this issueβs fork.
- π³πΏNew Zealand jlscott
@liam morland: I have taken up your suggestion and added a custom alter hook "hook_auto_username_alter" to allow custom logic to determine whether a username should be altered.
-
jayelless β
committed df244f63 on 8.x-1.x
Issue #3412418 by liam morland: Allow roles to avoid update
-
jayelless β
committed df244f63 on 8.x-1.x
-
jayelless β
committed df244f63 on 2.0.x
Issue #3412418 by liam morland: Allow roles to avoid update
-
jayelless β
committed df244f63 on 2.0.x