Skip to content

Commit c6ef2f9

Browse files
committed
feat: remove console lof and relax permission requirements
1 parent 045a539 commit c6ef2f9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

backend/apps/ecommerce/resolvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def resolve_product(self, info: "ResolveInfo", product_id: int):
1414
except Product.DoesNotExist:
1515
return None
1616

17-
@staff_member_required
17+
@login_required
1818
def resolve_products(self, info):
1919
return Product.objects.all()
2020

frontend/src/pages/janus/shop.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const ShopPage: NextPageWithLayout = () => {
1616
Butikk
1717
<Grid container spacing={2}>
1818
{data?.products?.map((product) => {
19-
console.log(product);
2019
if (product.shopItem === true)
2120
return (
2221
<Grid key={product.id} item xs={12} sm={6} md={6}>

0 commit comments

Comments
 (0)