I'm in a Drupal 7 installation, trying to find a way to avoid admin-users to edit other admin-user's account.
I've created a role for 'content administrators' and this users tasks involve user administration, but I don't want them to be able to edit other content administrators or admin accounts.
I wasn't able to find an option for this or a module providing the functionality and I'm a bit lost about how this can be achieved.
In D6 I guess could use hook_user() to catch an edit and check the target role in order to allow that edit or not, but this hook is gone on D7. The closest thing is hook_user_alter(), but this is called after the edit, so I can't use it.