Skip to content

Commit

Permalink
Add billing user role
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini committed Oct 9, 2024
1 parent b1eda43 commit 797f5c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions management/server/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
UserRoleAdmin UserRole = "admin"
UserRoleUser UserRole = "user"
UserRoleUnknown UserRole = "unknown"
UserRoleBilling UserRole = "billing"

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":
return UserRoleBilling
default:
return UserRoleUnknown
}
Expand Down

0 comments on commit 797f5c0

Please sign in to comment.