Skip to content

Commit

Permalink
Handle missing lock property
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ambatte committed Feb 28, 2024
1 parent 802da29 commit 0d1d3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/homebrew.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const api = {
});
stub = stub?.toObject();

if(stub.lock?.state) {
if(stub?.lock?.state) {
// State 1 : Locked for everything
// State 2 : Edit only
if(stub.lock.state == 1 || (stub.lock.state == 2 && accessType != 'edit'))
Expand Down

0 comments on commit 0d1d3a1

Please sign in to comment.