mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 03:12:40 +00:00
Handle missing lock property
This commit is contained in:
@@ -54,7 +54,7 @@ const api = {
|
|||||||
});
|
});
|
||||||
stub = stub?.toObject();
|
stub = stub?.toObject();
|
||||||
|
|
||||||
if(stub.lock?.state) {
|
if(stub?.lock?.state) {
|
||||||
// State 1 : Locked for everything
|
// State 1 : Locked for everything
|
||||||
// State 2 : Edit only
|
// State 2 : Edit only
|
||||||
if(stub.lock.state == 1 || (stub.lock.state == 2 && accessType != 'edit'))
|
if(stub.lock.state == 1 || (stub.lock.state == 2 && accessType != 'edit'))
|
||||||
|
|||||||
Reference in New Issue
Block a user