core: tests for operators api, CLI command to update operators (#5226)

This commit is contained in:
Evgeny authored and GitHub committed 2024-11-22 10:38:00 +00:00
1 parent bab63d8f27
commit 49d1b26bba
6 files changed
+98 -15

No files matched your search

+8
View File
@@ -192,6 +192,14 @@ data ServerOperator' s = ServerOperator
}
deriving (Show)
data ServerOperatorRoles = ServerOperatorRoles
{ operatorId' :: Int64,
enabled' :: Bool,
smpRoles' :: ServerRoles,
xftpRoles' :: ServerRoles
}
deriving (Show)
operatorRoles :: UserProtocol p => SProtocolType p -> ServerOperator -> ServerRoles
operatorRoles p op = case p of
SPSMP -> smpRoles op