Shopify · Report #1102660
staffOrderNotificationSubscriptionDelete Could Be Used By Staff Member With Settings Permission
How it was found
Hi,
The staff order notification should be under the control of staff members with Order permission but I found that the staff member with just Settings permission can also delete the order notifications using the GID
Steps to reproduce
- Login as a staff member with
Settingspermission - Make this GraphQL call to
https://yoursubdomain.myshopify.com/admin/internal/web/graphql/core?operation=SwitcherNoStores
{"query": "mutation{staffOrderNotificationSubscriptionDelete(staffOrderNotificationSubscriptionId:\"gid://shopify/StaffOrderNotificationSubscription/82867191864\"){userErrors{message}}} "}
-
Note: you can find the
82867191864id from/admin/settings/notificationsas an admin account, in theStaff order notificationssection, after adding a order notification and the id is in the URL -
The response you see should be
{"staffOrderNotificationSubscriptionDelete":{"userErrors":[]}}, and this means you have deleted the subscription already
Impact
The staff order notification should be under the control of staff members with Order permission but I found that the staff member with just Settings permission can also delete the order notifications using the GID