Fixes: 1) Remove redundant permission check for core.change_orderproduct in mutations.py;
Extra: None;
This commit is contained in:
parent
018d8ca8e0
commit
dea219f974
1 changed files with 1 additions and 1 deletions
|
|
@ -544,7 +544,7 @@ class FeedbackProductAction(BaseMutation):
|
|||
user = info.context.user
|
||||
try:
|
||||
order_product = OrderProduct.objects.get(uuid=order_product_uuid)
|
||||
if user != order_product.order.user or not user.has_perm("core.change_orderproduct"):
|
||||
if user != order_product.order.user:
|
||||
raise PermissionDenied(permission_denied_message)
|
||||
match action:
|
||||
case "add":
|
||||
|
|
|
|||
Loading…
Reference in a new issue