Skip to content

Commit

Permalink
Align permissions to AD read #362
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsen9026 committed May 22, 2024
1 parent 381268f commit f49d131
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions BLAZAMGui/UI/Users/RenameUserModalContent.razor
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
@inherits AppModalContent
@if (User != null && _privateUserInstance != null)
{
@if (User.CanReadField(ActiveDirectoryFields.GivenName))
{

<MudTextField AutoFocus=true Label="@AppLocalization["First Name"]" @bind-Value="@_privateUserInstance.GivenName" />



}
@if (User.CanReadField(ActiveDirectoryFields.MiddleName))
{


<MudTextField Label="@AppLocalization["Middle Name"]" @bind-Value="@_privateUserInstance.MiddleName" />



}
@if (User.CanReadField(ActiveDirectoryFields.SN))
{


<MudTextField Label="@AppLocalization["Last Name"]" @bind-Value="@_privateUserInstance.Surname" />



}
@if (User.CanReadField(ActiveDirectoryFields.DisplayName))
{


<MudTextField T="string" Label="@AppLocalization["Display Name"]" Text="@_privateUserInstance.DisplayName" TextChanged="DisplayNameChanged" />



}



@if (User.CanEditField(ActiveDirectoryFields.SAMAccountName))
Expand Down

0 comments on commit f49d131

Please sign in to comment.