In Drupal 6 and below, users must be assigned the 'administer site configuration' to use the site in offline mode. In Drupal 7, there is new separate permission for this: 'Use the site in maintenance mode'.

When trying to masquerade as a user with the 'Use the site in maintenance mode' permission, but not the 'administer site configuration' permission, I get this error:

It is not possible to masquerade in off-line mode as [user] does not have the administer site configuration permission. Please set the site status to "online" to masquerade as [user].

In this instance Masquerade should be checking for 'Use the site in maintenance mode' instead.

Working on a patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jenna.tollerson’s picture

This is the first time I've created a patch using git (instead of the old patch -p0 style) or used git at all. I hope everything is in order.

andypost’s picture

Status: Active » Fixed

Sure "Use the site in maintenance mode" make sense!

Commited 3416339..2c2b924 master -> master

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 2c2b924 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by andypost:
    Issue #1293748 by jenna.tollerson: Fixed When site is offline, check...

  • Commit 2c2b924 on master, 8.x-2.x, 8.x-2.x-admin-menu, 8.x-1.x-1836516 by andypost:
    Issue #1293748 by jenna.tollerson: Fixed When site is offline, check...