Corrected RoleEvent actions to match activity outcomes (RoleRenamed -> Renamed, RoleCreated -> Created, RoleRemoved -> Removed) (#8659)

This commit is contained in:
Andrea Piovanelli 2023-03-31 09:43:29 +02:00 committed by GitHub
parent d5acf2dc41
commit 10e5078956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ namespace Orchard.Roles.Events {
null, null,
() => new Dictionary<string, object> { () => new Dictionary<string, object> {
{ "Role", context.Role }, { "Role", context.Role },
{ "Action", "RoleCreated" } }); { "Action", "Created" } });
} }
public void PermissionAdded(PermissionAddedContext context) { public void PermissionAdded(PermissionAddedContext context) {
@ -40,7 +40,7 @@ namespace Orchard.Roles.Events {
null, null,
() => new Dictionary<string, object> { () => new Dictionary<string, object> {
{ "Role", context.Role }, { "Role", context.Role },
{ "Action", "RoleRemoved" } }); { "Action", "Removed" } });
} }
public void Renamed(RoleRenamedContext context) { public void Renamed(RoleRenamedContext context) {
@ -49,7 +49,7 @@ namespace Orchard.Roles.Events {
() => new Dictionary<string, object> { () => new Dictionary<string, object> {
{ "PreviousName", context.PreviousRoleName }, { "PreviousName", context.PreviousRoleName },
{ "NewName", context.NewRoleName }, { "NewName", context.NewRoleName },
{ "Action", "RoleRenamed" } }); { "Action", "Renamed" } });
} }
public void UserAdded(UserAddedContext context) { public void UserAdded(UserAddedContext context) {