mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-21 23:53:14 +01:00
[management] Fix session inactivity response (#2770)
This commit is contained in:
parent
7bda385e1b
commit
563dca705c
@ -137,13 +137,15 @@ func toAccountResponse(accountID string, settings *server.Settings) *api.Account
|
|||||||
}
|
}
|
||||||
|
|
||||||
apiSettings := api.AccountSettings{
|
apiSettings := api.AccountSettings{
|
||||||
PeerLoginExpiration: int(settings.PeerLoginExpiration.Seconds()),
|
PeerLoginExpiration: int(settings.PeerLoginExpiration.Seconds()),
|
||||||
PeerLoginExpirationEnabled: settings.PeerLoginExpirationEnabled,
|
PeerLoginExpirationEnabled: settings.PeerLoginExpirationEnabled,
|
||||||
GroupsPropagationEnabled: &settings.GroupsPropagationEnabled,
|
PeerInactivityExpiration: int(settings.PeerInactivityExpiration.Seconds()),
|
||||||
JwtGroupsEnabled: &settings.JWTGroupsEnabled,
|
PeerInactivityExpirationEnabled: settings.PeerInactivityExpirationEnabled,
|
||||||
JwtGroupsClaimName: &settings.JWTGroupsClaimName,
|
GroupsPropagationEnabled: &settings.GroupsPropagationEnabled,
|
||||||
JwtAllowGroups: &jwtAllowGroups,
|
JwtGroupsEnabled: &settings.JWTGroupsEnabled,
|
||||||
RegularUsersViewBlocked: settings.RegularUsersViewBlocked,
|
JwtGroupsClaimName: &settings.JWTGroupsClaimName,
|
||||||
|
JwtAllowGroups: &jwtAllowGroups,
|
||||||
|
RegularUsersViewBlocked: settings.RegularUsersViewBlocked,
|
||||||
}
|
}
|
||||||
|
|
||||||
if settings.Extra != nil {
|
if settings.Extra != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user