Skip to content

Commit

Permalink
Add billing user role (#2714)
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini authored Oct 10, 2024
1 parent 8284ae9 commit 208a2b7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions management/server/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ import (
)

const (
UserRoleOwner UserRole = "owner"
UserRoleAdmin UserRole = "admin"
UserRoleUser UserRole = "user"
UserRoleUnknown UserRole = "unknown"
UserRoleOwner UserRole = "owner"
UserRoleAdmin UserRole = "admin"
UserRoleUser UserRole = "user"
UserRoleUnknown UserRole = "unknown"
UserRoleBillingAdmin UserRole = "billing_admin"

UserStatusActive UserStatus = "active"
UserStatusDisabled UserStatus = "disabled"
Expand All @@ -41,6 +42,8 @@ func StrRoleToUserRole(strRole string) UserRole {
return UserRoleAdmin
case "user":
return UserRoleUser
case "billing_admin":
return UserRoleBillingAdmin
default:
return UserRoleUnknown
}
Expand Down

0 comments on commit 208a2b7

Please sign in to comment.