mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 18:32:40 +00:00
Change accessType check
This commit is contained in:
@@ -118,7 +118,7 @@ const api = {
|
|||||||
throw { ...accessError, message: 'User is not logged in', HBErrorCode: '04' };
|
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 };
|
throw { HBErrorCode: '51', code: stub.lock.code, message: stub.lock.shareMessage, brewId: stub.shareId, brewTitle: stub.title };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user