Fix warning on startup (possible null deref)
This commit is contained in:
parent
51766eca42
commit
bc62310104
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@
|
|||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
@if (User.Identity.IsAuthenticated)
|
||||
@if (User != null
|
||||
&& User.Identity != null
|
||||
&& User.Identity.IsAuthenticated)
|
||||
{
|
||||
if (User.IsInRole("Admin"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue