- π§πͺBelgium dieterholvoet Brussels
You're misunderstanding the purpose of the module. It checks the roles of the currently logged in user, not a user you might be editing. I recommend you create your own plugin for this purpose. You could base it on the changes in
doesnt_seem_work_with_fields_user_accounts-2907450-4.patch
, or you could wait until version 2 of the module is released. In that version theisRequired()
method will have access to the edited entity, which will make it so you don't have to get it from the route match.