mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 17:08:47 +08:00
Corrected RoleEvent actions to match activity outcomes (RoleRenamed -> Renamed, RoleCreated -> Created, RoleRemoved -> Removed) (#8659)
This commit is contained in:
parent
d5acf2dc41
commit
10e5078956
@ -14,7 +14,7 @@ namespace Orchard.Roles.Events {
|
||||
null,
|
||||
() => new Dictionary<string, object> {
|
||||
{ "Role", context.Role },
|
||||
{ "Action", "RoleCreated" } });
|
||||
{ "Action", "Created" } });
|
||||
}
|
||||
|
||||
public void PermissionAdded(PermissionAddedContext context) {
|
||||
@ -40,7 +40,7 @@ namespace Orchard.Roles.Events {
|
||||
null,
|
||||
() => new Dictionary<string, object> {
|
||||
{ "Role", context.Role },
|
||||
{ "Action", "RoleRemoved" } });
|
||||
{ "Action", "Removed" } });
|
||||
}
|
||||
|
||||
public void Renamed(RoleRenamedContext context) {
|
||||
@ -49,7 +49,7 @@ namespace Orchard.Roles.Events {
|
||||
() => new Dictionary<string, object> {
|
||||
{ "PreviousName", context.PreviousRoleName },
|
||||
{ "NewName", context.NewRoleName },
|
||||
{ "Action", "RoleRenamed" } });
|
||||
{ "Action", "Renamed" } });
|
||||
}
|
||||
|
||||
public void UserAdded(UserAddedContext context) {
|
||||
|
Loading…
Reference in New Issue
Block a user