Only pursue ACL checks for collections on/above the root guid; otherwise we spin forever.

This commit is contained in:
alexhudson
2010-08-21 18:56:24 +00:00
parent 659ab6ea05
commit 7e8ff58bc2
+1 -1
View File
@@ -1746,7 +1746,7 @@ StoreObjectCheckAuthorization(StoreClient *client, StoreObject *object, int prop
if (current_result == 0) {
// try to inherit from the containing collection so we can check that instead
if (checkobj.collection_guid > 0) {
if (checkobj.collection_guid > STORE_ROOT_GUID) {
StoreObjectFind(client, checkobj.collection_guid, &checkobj);
} else {
// default to deny if we have gone all the way up the tree