Add billing user role (#2714)

This commit is contained in:
Misha Bragin 2024-10-10 14:14:56 +02:00 committed by GitHub
parent 8284ae959c
commit 208a2b7169
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
} }