11-11-2016, 09:44 PM
I've kicked around a few thoughts on this. I think the best way to implement this would be this:
If the page detects someone is an admin (user group 2), then a button appears that says view as user.
If they click it, it refreshes the page to with something like ?view=1 after the url.
Then I would check Input::get('view') and if that === 1, then I would put up a button to view as admin which would refresh the page and pull off the get variable.
If the page detects someone is an admin (user group 2), then a button appears that says view as user.
If they click it, it refreshes the page to with something like ?view=1 after the url.
Then I would check Input::get('view') and if that === 1, then I would put up a button to view as admin which would refresh the page and pull off the get variable.