how to put a redirect to a page with a message if access to the page is denied by (ACL)?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
how to put a redirect to a page with a message if access to the page is denied by (ACL)?

thanks
4 years ago
One example is when you try and list products without Manage Categories permission
        public virtual IActionResult List()
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageCategories))
                return AccessDeniedView();
in
nopCommerce42\Presentation\Nop.Web\Areas\Admin\Controllers\CategoryController.cs
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.