Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add owner field to description

rafiwts500338537056
diff --git a/saleor/graphql/giftcard/types.py b/saleor/graphql/giftcard/types.py
index 98e0e96bb5..dcf5d65f01 100644
--- a/saleor/graphql/giftcard/types.py
+++ b/saleor/graphql/giftcard/types.py
@@ -240,7 +240,8 @@ class GiftCard(ModelObjectType[models.GiftCard]):
f"'{GiftcardPermissions.MANAGE_GIFT_CARD.name}' when gift card "
"hasn't been used yet or a user who bought or issued the gift card."
+ "\n\nRequires one of the following permissions: "
- f"{GiftcardPermissions.MANAGE_GIFT_CARD.name}."
+ f"{GiftcardPermissions.MANAGE_GIFT_CARD.name}, "
+ f"{AuthorizationFilters.OWNER.name}."
),
required=True,
)
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 0856a992e6..7cd487ba7b 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -10398,7 +10398,7 @@ type GiftCard implements Node & ObjectWithMetadata @doc(category: "Gift cards")
"""
Gift card code. It can be fetched both by a staff member with 'MANAGE_GIFT_CARD' when gift card hasn't been used yet or a user who bought or issued the gift card.
- Requires one of the following permissions: MANAGE_GIFT_CARD.
+ Requires one of the following permissions: MANAGE_GIFT_CARD, OWNER.
"""
code: String!
created: DateTime!