mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-18 07:52:41 +00:00
Change lock check to stub.lock from stub.lock.locked
This commit is contained in:
@@ -54,7 +54,7 @@ const api = {
|
||||
});
|
||||
stub = stub?.toObject();
|
||||
|
||||
if(stub?.lock?.locked && accessType != 'edit') {
|
||||
if(stub?.lock && accessType != 'edit') {
|
||||
throw { HBErrorCode: '100', code: stub.lock.code, message: stub.lock.message, brewId: stub.shareId, brewTitle: stub.title };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user