This topic is locked

Dynamic Permissions - Resetting

6/12/2009 12:20:39 AM
PHPRunner General questions
K
kenlyle author

So, if you have Dynamic Permissions, and it's working great, and then you make a change, and suddenly your admin user gets a blank page at login...
Is there a recommended way to recover? Browsing the database, I see that there is no -1 group in the _uggroups table. Is that a problem? Nope, adding Admin or admin groups to that table didn't help.
And the -1 group has AEDSPIM on all the tables...and the admin user is in the -1 group...
Hmm...putting one of my users names into the former admin record actually reduces her rights, instead of granting ALL.
Anyway, should I just go back to static, delete the tables, then go back to dynamic again? It's a new app, so I have almost nothing invested.
Thanks,

Ken

K
kenlyle author 6/12/2009

So I have done this 3 times now, with the same result, admin is losing admin privileges somehow.
When I first assign a new set of _ug* (the dynamic permissions tables), admin can admin.
When I create a group and assign one of the users to that group, which has only access to a few actions on a few tables, logout and login as a user, the user wasn't getting access to their tables. Further, when I logged back in as admin, I had lost all access to all tables.
This seems to be a cookie issue. The browser is Firefox 3. It seems that you can't change users in the same tab, or PHPR gets confused about who you are. When you login to a new tab as either admin or the user, all is well.
Is there some setting in PHPR to force more aggressive clearing/expiration of cookies, or some other simple fix for my issue?
Thanks,

K

J
Jane 6/16/2009