diff --git a/src/OrchardCore.Modules/OrchardCore.Roles/Recipes/RolesStep.cs b/src/OrchardCore.Modules/OrchardCore.Roles/Recipes/RolesStep.cs index 7d4a22dbcec..282a2e04b9b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Roles/Recipes/RolesStep.cs +++ b/src/OrchardCore.Modules/OrchardCore.Roles/Recipes/RolesStep.cs @@ -52,7 +52,7 @@ public async Task ExecuteAsync(RecipeExecutionContext context) role.RoleDescription = importedRole.Description; role.HasFullAccess = !isSystemRole && importedRole.HasFullAccess; - role.Type = isSystemRole ? RoleType.System : importedRole.Type; + role.Type = isSystemRole ? RoleType.System : RoleType.Standard; role.RoleClaims.RemoveAll(c => c.ClaimType == Permission.ClaimType); role.RoleClaims.AddRange(importedRole.Permissions.Select(p => new RoleClaim @@ -86,7 +86,5 @@ public sealed class RolesStepRoleModel public bool HasFullAccess { get; set; } - public RoleType Type { get; set; } - public string[] Permissions { get; set; } }