How to create a new system role which gives access only to my plugin?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 年 前
Hi,

I am developing a new plugin. Also, I add a system role which gives access to that plugin.
I want to assign the new role to a customer which is not an admin. Also, I want that user to have access only to my plugin in the admin area and to to be able to modify other resources such as products, roles, system settings etc.
Is that possible without modifying the adminweb project?

Regards,
Boris
8 年 前
I think you can do this by creating new job role but you don't want Admin to view this plugin. This is critical. You need to modify code in the plugin that Admin role could not access it and only your new job role can access it.

You should write Action Filter Attribute in your plugin that will validate your new job role only.
8 年 前
Use Permissions (which can be assigned to Roles)

http://www.abdurrahmangungor.com/nop-commerce-eklenti-kullanici-yetkilendirmesi/
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.