Return an error if the client doesn't have permission to list.

This commit is contained in:
alexhudson
2009-09-16 13:15:28 +00:00
parent e5b8a046d4
commit 709e9dc9c8
+1 -1
View File
@@ -2126,7 +2126,7 @@ StoreCommandLIST(StoreClient *client,
int ccode;
ccode = StoreObjectCheckAuthorization(client, collection, STORE_PRIV_LIST);
if (ccode) return ccode;
if (ccode) return ConnWriteStr(client->conn, MSG4240NOPERMISSION);
return StoreObjectIterCollectionContents(client, collection, start,
end, flagsmask, flags, props, propcount, NULL, NULL, FALSE);