mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-01 04:23:44 +01:00
Add billing user role (#2714)
This commit is contained in:
parent
8284ae959c
commit
208a2b7169
@ -23,6 +23,7 @@ const (
|
|||||||
UserRoleAdmin UserRole = "admin"
|
UserRoleAdmin UserRole = "admin"
|
||||||
UserRoleUser UserRole = "user"
|
UserRoleUser UserRole = "user"
|
||||||
UserRoleUnknown UserRole = "unknown"
|
UserRoleUnknown UserRole = "unknown"
|
||||||
|
UserRoleBillingAdmin UserRole = "billing_admin"
|
||||||
|
|
||||||
UserStatusActive UserStatus = "active"
|
UserStatusActive UserStatus = "active"
|
||||||
UserStatusDisabled UserStatus = "disabled"
|
UserStatusDisabled UserStatus = "disabled"
|
||||||
@ -41,6 +42,8 @@ func StrRoleToUserRole(strRole string) UserRole {
|
|||||||
return UserRoleAdmin
|
return UserRoleAdmin
|
||||||
case "user":
|
case "user":
|
||||||
return UserRoleUser
|
return UserRoleUser
|
||||||
|
case "billing_admin":
|
||||||
|
return UserRoleBillingAdmin
|
||||||
default:
|
default:
|
||||||
return UserRoleUnknown
|
return UserRoleUnknown
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user