mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Store Custom Roles (#4940)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BTCPayServer.Services.Stores;
|
||||
|
||||
namespace BTCPayServer.Models.ServerViewModels
|
||||
{
|
||||
@@ -20,5 +21,11 @@ namespace BTCPayServer.Models.ServerViewModels
|
||||
public override int CurrentPageCount => Users.Count;
|
||||
public Dictionary<string, string> Roles { get; set; }
|
||||
}
|
||||
public class RolesViewModel : BasePagingViewModel
|
||||
{
|
||||
public List<StoreRepository.StoreRole> Roles { get; set; } = new List<StoreRepository.StoreRole>();
|
||||
public string DefaultRole { get; set; }
|
||||
public override int CurrentPageCount => Roles.Count;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user