mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
- PERF: Fix the role based auth service to not recalculate permission checks again and again.
- Adding some comments to the authorization event handler interface. --HG-- branch : dev
This commit is contained in:
@@ -84,6 +84,8 @@ namespace Orchard.Roles.Services {
|
||||
|
||||
context.Adjusted = false;
|
||||
_authorizationServiceEventHandler.Adjust(context);
|
||||
if (!context.Adjusted)
|
||||
break;
|
||||
}
|
||||
|
||||
_authorizationServiceEventHandler.Complete(context);
|
||||
|
Reference in New Issue
Block a user