mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Better status message
This commit is contained in:
parent
b03d89c190
commit
b06b83503c
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ namespace BTCPayServer.Controllers
|
|||
var admins = await _UserManager.GetUsersInRoleAsync(Roles.ServerAdmin);
|
||||
if (!viewModel.IsAdmin && admins.Count == 1)
|
||||
{
|
||||
viewModel.StatusMessage = "This is the last Admin, so IsAdmin role can't be removed";
|
||||
viewModel.StatusMessage = "This is the only Admin, so their role can't be removed until another Admin is added.";
|
||||
return View(viewModel); // return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue