diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 036a21c6..978fc135 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -68,7 +68,7 @@ const api = { const isAuthor = stub?.authors?.includes(req.account?.username); const isInvited = stub?.invitedAuthors?.includes(req.account?.username); if(accessType === 'edit' && (authorsExist && !(isAuthor || isInvited))) { - throw { name: 'Access Error', message: 'User is not an Author', status: 403, HBErrorCode: '03' }; + throw { name: 'Access Error', message: 'User is not an Author', status: 401, HBErrorCode: '03' }; } // If after all of that we still don't have a brew, throw an exception