Return a proper ccode when user doesn't have permission to READ

This commit is contained in:
alexhudson
2010-07-09 23:23:22 +00:00
parent f24c5ea618
commit 8efbcc502e
+1 -1
View File
@@ -2648,7 +2648,7 @@ StoreCommandREAD(StoreClient *client, StoreObject *object,
// check that we're allowed to read
ccode = StoreObjectCheckAuthorization(client, object, STORE_PRIV_READ);
if (ccode) return ccode;
if (ccode) return ConnWriteStr(client->conn, MSG4240NOPERMISSION);
if (! LogicalLockGain(client, object, LLOCK_READONLY, "StoreCommandREAD"))
return ConnWriteStr(client->conn, MSG4120BOXLOCKED);