Removing unnecessary comments

This commit is contained in:
rockstardev
2025-05-30 23:26:45 -05:00
parent 6107990bf3
commit 1abc5fbdb5

View File

@@ -466,10 +466,9 @@ namespace BTCPayServer.Controllers
private async Task<T> SetViewModelValues<T>(T viewModel) where T : AddApiKeyViewModel
{
// FIXED: Added OrderBy to sort stores alphabetically by name
var stores = await _StoreRepository.GetStoresByUserId(_userManager.GetUserId(User));
viewModel.Stores = stores.OrderBy(store => store.StoreName, StringComparer.InvariantCultureIgnoreCase).ToArray();
//viewModel.Stores = await _StoreRepository.GetStoresByUserId(_userManager.GetUserId(User));
var isAdmin = (await _authorizationService.AuthorizeAsync(User, Policies.CanModifyServerSettings))
.Succeeded;
viewModel.PermissionValues ??= Policies.AllPolicies