Prevent deleting master tenant (#319)

* Prevent deleting master tenant

* Prevent deletion in APIS level

* Address feedback
This commit is contained in:
Hisham Bin Ateya
2020-04-02 15:08:55 +03:00
committed by GitHub
parent 0b302c6e26
commit c2a29831c4
4 changed files with 21 additions and 4 deletions

View File

@ -9,7 +9,14 @@
<label class="control-label">Name: </label>
</td>
<td>
<input class="form-control" @bind="@name" />
@if (name == Constants.MasterTenant)
{
<input class="form-control" @bind="@name" readonly />
}
else
{
<input class="form-control" @bind="@name" />
}
</td>
</tr>
<tr>