Skip to content

Commit

Permalink
fix: Use correct type filter for LocalDevelopmentUser (#1744)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Related Issue(s)

- #1743 

## Verification

- [ ] **Your** code builds clean without any errors or warnings
- [ ] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
  • Loading branch information
oskogstad authored Jan 28, 2025
1 parent d9281fc commit fa30ebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal static class AuthorizationScope
private static ReadOnlyCollection<string> GetAll() =>
typeof(AuthorizationScope)
.GetFields()
.Where(x => x.IsLiteral && !x.IsInitOnly && x.DeclaringType == typeof(string))
.Where(x => x.IsLiteral && !x.IsInitOnly && x.FieldType == typeof(string))
.Select(x => (string)x.GetRawConstantValue()!)
.ToList()
.AsReadOnly();
Expand Down

0 comments on commit fa30ebe

Please sign in to comment.