Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Sep 23, 2024
1 parent ee4bf67 commit 56420bb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -86,7 +86,5 @@ public sealed class RolesStepRoleModel

public bool HasFullAccess { get; set; }

public RoleType Type { get; set; }

public string[] Permissions { get; set; }
}

0 comments on commit 56420bb

Please sign in to comment.