I can’t answer your question I am afraid.
But as a bit of forum house cleaning I think you should make your question more specific. Its very vague and is posted in the general section of the forum...
-
☆ A M B ☆
- 24,524 Posts
I’ve been considering this issue, and the only thing I can think of is for a plugin that tests if a user is a logged-in Manager user, and if he is, does he have business as such on that page. If he doesn’t, log him out.
-
☆ A M B ☆
- 24,524 Posts
I’ve never heard of such a thing.
-
☆ A M B ☆
- 24,524 Posts
I suppose one way would be to create a plugin using one of the events like onWebPageInit. Check if the user is logged in as a manager user, and if he is, fetch his login home Id. If that isn’t the same as the documentIdentifier, then just redirect him back to his login page and he’d have to logout using the QM logout button before he could go anywhere else.
The manager_login_startup can be found in the user_settings table. It’s a settings type table, so the query is a bit more involved:
SELECT setting_value FROM modx_user_settings WHERE setting_name = 'manager_login_startup' and user = $_SESSION['internalKey']