Skip to content

Commit d26f3e7

Browse files
authored
feat: add viewer role (#9803)
1 parent d1f99eb commit d26f3e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1050
-392
lines changed

app/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,6 +3228,7 @@ type UserRole implements Node {
32283228
enum UserRoleInput {
32293229
ADMIN
32303230
MEMBER
3231+
VIEWER
32313232
}
32323233

32333234
type ValidationResult {

app/src/constants/userConstants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export enum UserRole {
22
ADMIN = "ADMIN",
33
MEMBER = "MEMBER",
4+
VIEWER = "VIEWER",
45
}
56

67
export function normalizeUserRole(role: string) {

app/src/pages/settings/__generated__/NewUserDialogMutation.graphql.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/pages/settings/__generated__/ResetPasswordDialogMutation.graphql.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/pages/settings/__generated__/UserRoleChangeDialogMutation.graphql.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)