It's not possible OOTB as it's basically "you have permissions to see the commerce section or you don't"
Vendr does expose a number of events though, such as OrderSearchingNotification which would allow you to apply an additional filter to the order list view, and in terms of making things read only, the best I can think is to create your own order edit Angular view and then intercept the OrderEditorConfigParsingNotification event to switch the view depending on permissions.
Vendr Commerce Section Custom User Permissions
Is there a way to customize the permissions a user has within the commerce section?
I need to make a user type that only has read only permissions on the orders in the commerce section.
I also need to make a user type that only can see a subset of orders (based on a shipping type).
Has anyone done this before? Is this possible?
Hey Kevin,
It's not possible OOTB as it's basically "you have permissions to see the commerce section or you don't"
Vendr does expose a number of events though, such as
OrderSearchingNotification
which would allow you to apply an additional filter to the order list view, and in terms of making things read only, the best I can think is to create your own order edit Angular view and then intercept theOrderEditorConfigParsingNotification
event to switch the view depending on permissions.Hope this helps
Matt
is working on a reply...