After Switching to Offline mode and switching to test user.

I cannot return as Admin.

Solution
Make Switch back Link in Offline page.

Comments

NikLP’s picture

Further to this, is there any way that Masquerade could bypass this site maintenance situation?
I have site I'm having to develop live, and I don't want to open it up yet.

LeeHunter’s picture

A second part of this issue is that the help text on the Site Maintenance page is presented in a way that is completely misleading.

In 5.x it reads "Authorized users can log in during "Off-line" mode directly via the user login page."

The problem (for me anyway) is that the words "user login" are presented only as a live link. When I click on it, I don't see http://mysite/user because it takes me to http://mysite/users/MyLoginName.

Logically this would lead anyone to think that you would have to log in again using http://mysite/users/MyLoginName because there's nothing visible on the page that indicates http://mysite/user. It took me a lot of needless flailing around before I realized what the problem was.

The fix is to just show the URL and not make it a clickable link.

Gurpartap Singh’s picture

Assigned: Unassigned » Gurpartap Singh
Status: Active » Fixed

Masquerading is now only possible, when the user to masquerade as has the permission to access site in off-line mode. Fixed! Thanks!

DynV’s picture

Category: support » feature

Is there a way to switch back is the user doesn't have masquerade permission ? Perhaps through a specific path ? masquerade/unswitch won't work without permissions.

DynV’s picture

Assigned: Gurpartap Singh » Unassigned
Category: task » support
Status: Fixed » Active

Crap ! Can't change issue settings through edit. :|

Gurpartap Singh’s picture

Assigned: Unassigned » Gurpartap Singh
Category: feature » support
Status: Active » Fixed

That should have gone into another issue. However, for recovering from that kind of problem, you can clear your sessions and masquerade table in the sql database. And then login again as you would normally. Would recommend you to update your version of masquerade module to the latest from development branch; so that this situation doesn't happen again.

DynV’s picture

Sorry for hijacking, Gurpartap I sent a reply at #217893: Switch back without permissions

Anonymous’s picture

Status: Fixed » Closed (fixed)

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