chrisf wrote:
Can this be done from a script?
Lets say you have the following directory structure:
ROOT/A/B/C/D/E
user TEMP is in the acl_user folder in the 'C' directory and hence can log in only at ROOT/A/B/C directory and upwards. lets say he logs in a ROOT/A/B/C/D/E/F I would like to know at which level he was authorized.
not really possible, other than to say his user object came from the acl_users in the 'C' directory.
I am not keen about changing manage user permissions.
Why do you think you might need to do that?
In otherwords I would like a script that loops back through parents checking to see if folders can be viewed.
Not too hard, but potentially tricky so I won't attempt it here ;-)
How can one predict whether a user authorization dialogue will appear.
urm... that's what you're trying to do by checking which folders can be viewed.
How can one interupt a authorization dialogue from appearing.
You can catch the Unauthorized exception some time after it's raised and some time before it gets to ZPublisher. cheers, Chris