Skip to content

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

Merge branch 'master' into feature/permission-groups

IKarbowiak3b4294b11b81
diff --cc CHANGELOG.md
index 4d48431f52,9494061377..e9782244f8
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -80,14 -80,12 +80,20 @@@ All notable, unreleased changes to thi
- Add --force flag to cleardb command - #5302 by @maarcingebala
- Require non-empty message in orderAddNote mutation - #5316 by @maarcingebala
- Stock management refactor - #5323 by @IKarbowiak
+- Update create permission group restriction - #5355 by @IKarbowiak
+- Add groups to user type - #5368 by @IKarbowiak
+- Allow specifying users in groups mutations - #5362 by @IKarbowiak
+- Add user can manage field to group type - #5376 by @IKarbowiak
+- Prevent users from modifying a group with permissions they don't hold - #5380 by @IKarbowiak
+- Add user_permissions on user type - #5390 by @IKarbowiak
+- Update user to group assign restriction - #5395 by @IKarbowiak
+- Add editable groups on user type - #5408 by @IKarbowiak
+ - Add discount error codes - #5348 by @IKarbowiak
+ - Add benchmarks to checkout mutations - #5339 by @fowczarek
+ - Add pagination tests - #5363 by @fowczarek
+ - Add ability to assign multiple warehouses in mutations to create/update a shipping zone - #5399 by @fowczarek
+ - Add filter by ids to warehouses query - #5414 by @fowczarek
+
## 2.9.0
diff --cc saleor/graphql/account/types.py
index c0e808d5ef,0ed0e7c73a..ca88fd40e4
--- a/saleor/graphql/account/types.py
+++ b/saleor/graphql/account/types.py
@@@ -19,9 -19,7 +19,8 @@@ from ..meta.deprecated.resolvers impor
from ..meta.types import ObjectWithMetadata
from ..utils import format_permissions_for_display
from ..wishlist.resolvers import resolve_wishlist_items_from_user
- from ..wishlist.types import WishlistItem
from .enums import CountryCodeEnum, CustomerEventsEnum
+from .utils import can_user_manage_group, get_groups_which_user_can_manage
class AddressInput(graphene.InputObjectType):
diff --cc saleor/graphql/core/utils/error_codes.py
index b521469ef0,b8474d8a37..b8bc75f3fd
--- a/saleor/graphql/core/utils/error_codes.py
+++ b/saleor/graphql/core/utils/error_codes.py
@@@ -1,8 -1,9 +1,9 @@@
from enum import Enum
-from ....account.error_codes import AccountErrorCode
+from ....account.error_codes import AccountErrorCode, PermissionGroupErrorCode
from ....checkout.error_codes import CheckoutErrorCode
from ....core.error_codes import ShopErrorCode
+ from ....discount.error_codes import DiscountErrorCode
from ....extensions.error_codes import ExtensionsErrorCode
from ....giftcard.error_codes import GiftCardErrorCode
from ....menu.error_codes import MenuErrorCode