- 5
Is there a way to get the Ajax Filters plugin to ingore product ACL for users with Administrator role?
We maintain our own custom application based on NopCommerce v3.9 and use your Ajax Filters plugin as part of this application, particularly for Specification Attribute filtering. As well, we make extensive use of customer roles and ACL permission to control product access as well.
We have two administrator type roles; a the default NopCommerce admin role and a second and somewhat restricted admin role. However, for both roles we want to effectively ignore catalog/product ACL restrictions for these users so that we don't have to explicitly add or otherwise maintain additional roles for the associated users.
In testing, I've modified the Nop.Core.Customers.CustomerExtensions.GetCustomerRoleIds() method to not only return the roles actually assigned to the user, but also include all other role Ids if the user is an admin. But it appears your Ajax Filters plugin doesn't utilize this method to get the customer roles Ids as I don't see that they are passed to the Ajax Filters stored procedure in the database.
Is there another core method that can be modified to pass all role Ids to Ajax Filters to accomplish the ACL override for admins?
We maintain our own custom application based on NopCommerce v3.9 and use your Ajax Filters plugin as part of this application, particularly for Specification Attribute filtering. As well, we make extensive use of customer roles and ACL permission to control product access as well.
We have two administrator type roles; a the default NopCommerce admin role and a second and somewhat restricted admin role. However, for both roles we want to effectively ignore catalog/product ACL restrictions for these users so that we don't have to explicitly add or otherwise maintain additional roles for the associated users.
In testing, I've modified the Nop.Core.Customers.CustomerExtensions.GetCustomerRoleIds() method to not only return the roles actually assigned to the user, but also include all other role Ids if the user is an admin. But it appears your Ajax Filters plugin doesn't utilize this method to get the customer roles Ids as I don't see that they are passed to the Ajax Filters stored procedure in the database.
Is there another core method that can be modified to pass all role Ids to Ajax Filters to accomplish the ACL override for admins?