Skip to content

Commit 90d331b

Browse files
authored
FUND-2011 Removed AuthorizedRsins settings (#123)
1 parent 0e6d65d commit 90d331b

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/OneGround.ZGW.Common.Web/Handlers/ZGWBaseHandler.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,21 @@ public abstract class ZGWBaseHandler
1414
protected readonly IAuthorizationContextAccessor AuthorizationContextAccessor;
1515
protected readonly string _rsin;
1616

17-
private readonly IEnumerable<string> _authorizedRsins;
18-
1917
protected ZGWBaseHandler(IConfiguration configuration, IAuthorizationContextAccessor authorizationContextAccessor)
2018
{
2119
Configuration = configuration;
2220
AuthorizationContextAccessor = authorizationContextAccessor;
2321
_rsin = authorizationContextAccessor.AuthorizationContext.Authorization.Rsin;
24-
25-
_authorizedRsins = Configuration.GetSection("Application:AuthorizedRsins").Get<IEnumerable<string>>() ?? [];
2622
}
2723

2824
protected Expression<Func<T, bool>> GetRsinFilterPredicate<T>()
2925
where T : OwnedEntity
3026
{
31-
if (_authorizedRsins.Contains(_rsin))
32-
{
33-
return z => true;
34-
}
35-
3627
return z => z.Owner == _rsin;
3728
}
3829

3930
protected Expression<Func<T, bool>> GetRsinFilterPredicate<T>(Expression<Func<T, bool>> predicate)
4031
{
41-
if (_authorizedRsins.Contains(_rsin))
42-
{
43-
return z => true;
44-
}
45-
4632
return predicate;
4733
}
4834
}

src/Tests/OneGround.ZGW.Documenten.WebApi.UnitTests/EnkelvoudigeInformatieHandlerTests/EnkelvoudigInformatieObjectVersionsBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ protected async Task SetupMocksAsync(List<EnkelvoudigInformatieObjectVersie> enk
6868
{ "Application:DontSendNotificaties", "false" },
6969
{ "Application:EnkelvoudigInformatieObjectenPageSize", "50" },
7070
{ "Application:CachedSecretExpirationTime", "00:03:00" },
71-
{ "Application:AuthorizedRsins", "813264571" },
7271
{ "Application:ResolveForwardedHost", "false" },
7372
{ "Application:DefaultDocumentenService", "unittest_documentservice" },
7473
};

0 commit comments

Comments
 (0)