It would be great to get a drupal 6 version of this module

Comments

mr.baileys’s picture

Priority: Critical » Normal

I don't think this module can be ported to D6 because of the logic in _menu_site_is_offline without hacking core: while in D7 a permission "access the site in maintenance mode" was added, D6 users without the "administer site information"-permission cannot access any portion of the site except /user, so they have no way of disabling maintenance mode (not even with the "administer maintenance mode"-permission introduced by this module.

Priority Critical means OMG everything is broken please fix immediately, which usually is not the case for feature requests, so I downgraded it to normal. See Priority levels of issues for more info.

mr.baileys’s picture

Status: Active » Needs review
StatusFileSize
new2.69 KB

Seems I was wrong, and there is a way to simulate "access site in maintenance mode"-permission that was added in D7 for D6, without needing to resort to core hacks.

Attached patch is a D6 port of this module based on code taken from Can multiple administrators access site in maintenance mode

mr.baileys’s picture

StatusFileSize
new1.36 KB

Tarball of the full D6 port for easier testing.

fadgadget’s picture

#3 not working for me mr b but thanks anyhow. Added permission to administer site configuration and also the 2 new permissions to a super mod role but no entry im afraid.

fadgadget’s picture

sorry i take all that back. Boost module logged my super mod out as i went into maintenance mode. Works as expected. Thank mr b )