Closed liberatr closed 8 months ago
Yes, the menu hooks definitely need access checks; I'd say admins or user 1 only probably. In which case I dont think a warning would be needed. If youre an admin and you run this module all the way through the wizard "accidentally", something would need to be seriously wrong with you.
Thanks @liberatr! I'm helping @irinaz with this module this weekend.
I pushed a commit to your PR with a few changes:
hook_requirments()
to an .install
fileREQUIREMENT_ERROR
to REQUIREMENT_WARNING
As a site owner, I would like to be reminded that D2B Migrate is a dangerous module to have enabled, so I can remember to disable it.
Especially right now there are not even any access checks on the menu hooks.
I propose at least adding a message to the status screen to remind them to turn off this module if they're not using it.