3124: added listprice to printproduct and public access to product and designers (#138)

This commit is contained in:
Arwid Thornström
2022-12-19 09:29:47 +01:00
committed by GitHub
parent 28d643003e
commit 62b93a3656
9 changed files with 69 additions and 8 deletions
+6 -1
View File
@@ -46,7 +46,12 @@ function getScopes(user: ClaimVerifyResult): Scopes[] | [] {
function throwForbidden() {
throw new GraphQLError('You are not authorized to perform this action', {
extensions: { code: 'FORBIDDEN' },
extensions: {
code: 'FORBIDDEN',
http: {
status: 401,
},
},
});
}