Hardened API and catered for Partner role query filter bypass
This commit is contained in:
@@ -10,5 +10,6 @@ public sealed partial class ApplicationDbContextFactory
|
||||
public long TenantId => 0L;
|
||||
public bool IsAdmin => true;
|
||||
public bool HasTenantFilter => false;
|
||||
public bool ByPassTenantQueryFilter { get; set; } = true;
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,8 @@ public sealed class TenantContextService : ITenantContextService
|
||||
|
||||
public long TenantId { get; }
|
||||
|
||||
public bool ByPassTenantQueryFilter { get; set; } = false;
|
||||
|
||||
public bool IsAdmin { get; }
|
||||
|
||||
public bool HasTenantFilter { get; }
|
||||
|
||||
Reference in New Issue
Block a user