File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ const meta: Meta<typeof TemplatePageHeader> = {
13
13
permissions : {
14
14
canUpdateTemplate : true ,
15
15
} ,
16
+ workspacePermissions : {
17
+ createWorkspaceForUser : true ,
18
+ } ,
16
19
} ,
17
20
} ;
18
21
@@ -29,6 +32,14 @@ export const CanNotUpdate: Story = {
29
32
} ,
30
33
} ;
31
34
35
+ export const CannotCreateWorkspace : Story = {
36
+ args : {
37
+ workspacePermissions : {
38
+ createWorkspaceForUser : false ,
39
+ } ,
40
+ } ,
41
+ } ;
42
+
32
43
export const Deprecated : Story = {
33
44
args : {
34
45
template : {
Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ export const WithTemplates: Story = {
74
74
} ,
75
75
] ,
76
76
examples : [ ] ,
77
+ workspacePermissions : {
78
+ [ MockTemplate . organization_id ] : {
79
+ createWorkspaceForUser : true ,
80
+ } ,
81
+ } ,
77
82
} ,
78
83
} ;
79
84
@@ -84,6 +89,17 @@ export const MultipleOrganizations: Story = {
84
89
} ,
85
90
} ;
86
91
92
+ export const CannotCreateWorkspaces : Story = {
93
+ args : {
94
+ ...WithTemplates . args ,
95
+ workspacePermissions : {
96
+ [ MockTemplate . organization_id ] : {
97
+ createWorkspaceForUser : false ,
98
+ } ,
99
+ } ,
100
+ } ,
101
+ } ;
102
+
87
103
export const WithFilteredAllTemplates : Story = {
88
104
args : {
89
105
...WithTemplates . args ,
You can’t perform that action at this time.
0 commit comments