Return a proper ccode when user doesn't have permission to READ
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user