Skip to content

Commit c8d053c

Browse files
author
REDMOND\v-ajnava
committed
review comments.
1 parent 55337f8 commit c8d053c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/ResourceManager/Relay/Commands.Relay/Models/AuthorizationRuleAttributes.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@ public AuthorizationRuleAttributes(AuthorizationRule authorizationrule)
5252

5353
Rights = new List<string>();
5454

55-
foreach (AccessRights teset in authorizationrule.Rights)
55+
foreach (AccessRights rights in authorizationrule.Rights)
5656
{
57-
Rights.Add(teset.ToString());
58-
}
59-
//Rights = authorizationrule.Rights.Select(x => Enum.Parse(typeof(AccessRights?), x))
60-
// .Cast<AccessRights?>()
61-
// .ToList()
62-
// Rights = authorizationrule.Rights;
57+
Rights.Add(rights.ToString());
58+
}
6359
}
6460

6561

0 commit comments

Comments
 (0)