This is a great module, I like it a lot and I have banned similar functionality from https://drupal.org/project/drd in favour of recommending userone for those who would like to protect the user 1 account.
When I went through all the features today I realized that there is an option left which would allow other admins to grant themselves access to the user 1 again: they could simply disable the module userone and then do what ever they want. So it seems important that this gets avoided by either hiding userone from admin/modules or by disabling the checkbox.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | hide_or_protect_userone-2288269-8.patch | 815 bytes | jurgenhaas |
| #6 | hide_or_protect_userone-2288269-6.patch | 913 bytes | jurgenhaas |
Comments
Comment #1
mrpauldriver commentedThis does seem like a bit of an oversight. Perhaps Drupal does not allow this?
The userone module should only be accessible to User 1
Comment #2
jurgenhaasIt should be possible with a hook_form_alter() to just set #access of that checkbox to FALSE.
Comment #3
mrpauldriver commentedNot a coder myself.
Comment #4
jurgenhaasHere is a patch providing the functionality.
Comment #5
jurgenhaasComment #6
jurgenhaasSorry, the previous patch was the wrong file, here comes the correct one.
Comment #7
Kristina Katalinic commentedThe patch in #6 does not work with Module Filter enabled and since the Module Filter stats show 283,131 sites currently report using this module it would be really important to have this feature compatible with Module Filter otherwise we could all use hidden = TRUE in our .info files
Comment #8
jurgenhaasRe-rolled for drush make.
Comment #9
mrpauldriver commentedI'm still seeing userone when using module_filter
Comment #10
donapis commentedI'm also still seeing userone module when using module_filter. Only description is hidden.
Comment #11
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.