Hey all.
Basically, I have something that can have recursive permissions. Call it a user for simplicity. SO you tell the user that they can access a url recursivley. But then you want to add a rule that says this one item in that path they cannot access.
So, in code it would look something like:
if(notExplicitlyBanned($exactPath) && allowedByRecursive($parent)
{
}
How would I do this in sql?
I can ask ( QUERY ) the table:
(item,path,access,recursive)
If access is not allowed, but it's parent's permissions are recursive, it should not show up.
Right now, it tests false for allowed, but since it reads it's parent is recursive, it goes on and allows it.
I don't want to do more than one query here.
This is all pretty cryptic, can anyone follow me here, and help?