Skip to content

Commit 3a42818

Browse files
fix
1 parent 28a470e commit 3a42818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Resources/Commands.Resources/Models.Authorization/AuthorizationClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public IEnumerable<PSRoleAssignment> RemoveRoleAssignment(FilterRoleAssignmentsO
318318
// but an edge case can have multiple role assignments to the same role or multiple role assignments to different roles, with same name.
319319
// The FilterRoleAssignments takes care of paging internally
320320
IEnumerable<PSRoleAssignment> roleAssignments = FilterRoleAssignments(options, currentSubscription: subscriptionId)
321-
.Where(ra => ra.Scope.Equals(options.Scope.TrimEnd('/'), StringComparison.OrdinalIgnoreCase));
321+
.Where(ra => ra.Scope.TrimEnd('/').Equals(options.Scope.TrimEnd('/'), StringComparison.OrdinalIgnoreCase));
322322

323323
if (roleAssignments == null || !roleAssignments.Any())
324324
{

0 commit comments

Comments
 (0)