Skip to content

Commit

Permalink
fix: update roles to follow the protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofei-du committed Feb 9, 2023
1 parent acd0f23 commit 208d95d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion integration-test/rest-admin-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function CheckAdminUpdate() {
first_name: "test",
last_name: "foo",
org_name: "company",
role: "Manager",
role: "ai-researcher",
newsletter_subscription: true,
cookie_token: "f5730f62-7026-4e11-917a-d890da315d3b",
create_time: "2000-01-01T00:00:00.000000Z",
Expand Down
2 changes: 1 addition & 1 deletion integration-test/rest-public-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function CheckPublicUpdate(){
first_name: "test",
last_name: "foo",
org_name: "company",
role: "Manager",
role: "ai-engineer",
newsletter_subscription: true,
cookie_token: "f5730f62-7026-4e11-917a-d890da315d3b",
create_time: "2000-01-01T00:00:00.000000Z",
Expand Down
14 changes: 7 additions & 7 deletions pkg/service/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ func ListAllowedRoleName() []string {

// Define roles
const (
Manager Role = "Manager"
AIResearcher Role = "AI Researcher"
AIEngineer Role = "AI Engineer"
DataEngineer Role = "Data Engineer"
DataScientist Role = "Data Scientist"
AnalyticsEngineer Role = "Analytics Engineer"
Hobbyist Role = "Hobbyist"
Manager Role = "manager"
AIResearcher Role = "ai-researcher"
AIEngineer Role = "ai-engineer"
DataEngineer Role = "data-engineer"
DataScientist Role = "data-scientist"
AnalyticsEngineer Role = "analytics-engineer"
Hobbyist Role = "hobbyist"
)

var AllowedRoles = []Role{
Expand Down

0 comments on commit 208d95d

Please sign in to comment.