cancel
Showing results for 
Search instead for 
Did you mean: 

Add new company role permission for existing roles

Add new company role permission for existing roles

Hi,
I created a patch that add new permission in table company_permissions for specific roles, the problem is when i go to role edit page checkbox not show value from database, i have four roles with same resources but different permissions, and for all is showed only value for last role, i found that function retrieveRolePermissions from PermissionProvider return wrong data and i created a plugin to rewrite this, but i don't understand why default magento function don't work properly.
This happens only with existing companies for that i add new permission, when i create a new company and role and permissions are installed default, all is good