What are the records in the modx_access_context table?
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
☆ A M B ☆
- 1,056 Posts
Quote from: erunix at Aug 03, 2010, 11:08 AM
Quote from: splittingred at Aug 03, 2010, 11:03 AM
What are the records in the modx_access_context table?
id target principal_class principal authority policy
1 web modUserGroup 0 9999 3
2 mgr modUserGroup 1 0 2
3 web modUserGroup 1 0 2
Umm... how did you manage to get two "web" contexts? ...if you change it to "web2" (where id=1 and authority=9999), logout then back in, does that correct your issue?
UPDATE modx_access_context SET target="web2" WHERE id=1 AND authority=9999;
@shaun, Should there perhaps be a UNIQUE index constraint placed on `modx_access_context`.`target`?
-
MODX Staff
- 10,725 Posts
You can apply multiple policies to a single context; that is not an issue. It looks like you just applied restrictions to a different user group for web and now the Administrator can’t load it. That or you just didn’t flush permissions after making the changes.
I think i would be great if i record this behavior.