0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Change accessType check

This commit is contained in:
G.Ambatte
2025-04-08 09:28:54 +12:00
parent ec6258a2a5
commit 1ded1cad5a

View File

@@ -118,7 +118,7 @@ const api = {
throw { ...accessError, message: 'User is not logged in', HBErrorCode: '04' };
}
if(stub?.lock && accessType != 'edit') {
if(stub?.lock && accessType === 'share') {
throw { HBErrorCode: '51', code: stub.lock.code, message: stub.lock.shareMessage, brewId: stub.shareId, brewTitle: stub.title };
}