reactioncommerce / reaction-feature-requests

Reaction Feature Requests
13 stars 1 forks source link

Sidebar Permission Control with RegisterOperatorRoute #118

Open Zachary-work opened 4 years ago

Zachary-work commented 4 years ago

From my understanding, we can't control some of the sidebar items to be accessible by only a group of users with the RegisterOperatorRoute function.

For example, I want to create an advanced setting plugin which is only accessible by admin and a custom group of user, with RegisterOperatorRoute, seems like I can't do that.

Therefore, I would like to suggest this feature, and I think it will be very useful in a lot of cases.

Maybe we can do that by adding a permission filter function for filtering in /reaction-platform/reaction/imports/client/ui/components/Sidebar/Sidebar.js those unnecessary items.

May I know if it is possible or if there is already an existing feature will be able to do the same thing. >"<

Thank you for your kind attention.