Some code improvement for admin controllers

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I want to propese some code improvement and even will be able to do it check and contribute to repository.

Typical admin controller action contains this lines of code:


if (!_permissionService.Authorize(StandardPermissionProvider.ManageCategories))
                return AccessDeniedKendoGridJson();


I propose to make this check at controller/action attribute level.

     [CheckPermission(StandardPermissionProvider.ManageCategories)]



What do think ?
5 years ago
Thanks for the suggestion.
We can think about it as a part of a more global task about the ACL.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.