Skip to content

Commit

Permalink
Merge pull request #43 from StockDrops/main
Browse files Browse the repository at this point in the history
Fixed a bug where TenantRoles would give an exception if the _tenantRoles was null
  • Loading branch information
JonPSmith authored Jun 2, 2022
2 parents 56a3230 + 430c549 commit a93b460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AuthPermissions.AspNetCore/CreateNuGetRelease.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>AuthPermissions.AspNetCore</id>
<version>3.2.0</version>
<version>3.2.1-dev1</version>
<authors>Jon P Smith</authors>
<product>AuthPermissions.AspNetCore</product>
<copyright>Copyright (c) 2021 Jon P Smith</copyright>
Expand Down
2 changes: 1 addition & 1 deletion AuthPermissions.AspNetCore/MultiProjPack.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- See documentation for all the possible values -->
<metadata>
<id>AuthPermissions.AspNetCore</id>
<version>3.2.0</version>
<version>3.2.1-dev1</version>
<authors>Jon P Smith</authors>
<product>AuthPermissions.AspNetCore</product>
<copyright>Copyright (c) 2021 Jon P Smith</copyright>
Expand Down
4 changes: 2 additions & 2 deletions AuthPermissions.BaseCode/DataLayer/Classes/Tenant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ public static IStatusGeneric<Tenant> CreateHierarchicalTenant(string fullTenantN
/// </summary>
public IReadOnlyCollection<Tenant> Children => _children?.ToList();


/// <summary>
/// This holds any Roles that have been specifically
/// </summary>
public IReadOnlyCollection<RoleToPermissions> TenantRoles => _tenantRoles.ToList();

public IReadOnlyCollection<RoleToPermissions> TenantRoles => _tenantRoles?.ToList() ?? new List<RoleToPermissions>();
/// <summary>
/// Easy way to see the tenant and its key
/// </summary>
Expand Down

0 comments on commit a93b460

Please sign in to comment.