mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +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,
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user