@lightdash/common 0.1399.3 → 0.1400.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -67,6 +67,9 @@ const applyOrganizationMemberStaticAbilities = {
|
|
67
67
|
can('view', 'Tags', {
|
68
68
|
organizationUuid: member.organizationUuid,
|
69
69
|
});
|
70
|
+
can('view', 'MetricsTree', {
|
71
|
+
organizationUuid: member.organizationUuid,
|
72
|
+
});
|
70
73
|
},
|
71
74
|
interactive_viewer(member, { can }) {
|
72
75
|
applyOrganizationMemberStaticAbilities.viewer(member, { can });
|
@@ -175,6 +178,9 @@ const applyOrganizationMemberStaticAbilities = {
|
|
175
178
|
can('manage', 'Tags', {
|
176
179
|
organizationUuid: member.organizationUuid,
|
177
180
|
});
|
181
|
+
can('manage', 'MetricsTree', {
|
182
|
+
organizationUuid: member.organizationUuid,
|
183
|
+
});
|
178
184
|
},
|
179
185
|
developer(member, { can }) {
|
180
186
|
applyOrganizationMemberStaticAbilities.editor(member, { can });
|
@@ -51,6 +51,9 @@ exports.projectMemberAbilities = {
|
|
51
51
|
can('view', 'Tags', {
|
52
52
|
projectUuid: member.projectUuid,
|
53
53
|
});
|
54
|
+
can('view', 'MetricsTree', {
|
55
|
+
projectUuid: member.projectUuid,
|
56
|
+
});
|
54
57
|
},
|
55
58
|
interactive_viewer(member, { can }) {
|
56
59
|
exports.projectMemberAbilities.viewer(member, { can });
|
@@ -155,6 +158,9 @@ exports.projectMemberAbilities = {
|
|
155
158
|
can('manage', 'Tags', {
|
156
159
|
projectUuid: member.projectUuid,
|
157
160
|
});
|
161
|
+
can('manage', 'MetricsTree', {
|
162
|
+
projectUuid: member.projectUuid,
|
163
|
+
});
|
158
164
|
},
|
159
165
|
developer(member, { can }) {
|
160
166
|
exports.projectMemberAbilities.editor(member, { can });
|
@@ -8,7 +8,7 @@ interface Project {
|
|
8
8
|
interface Organization {
|
9
9
|
organizationUuid: string;
|
10
10
|
}
|
11
|
-
type Subject = Project | Organization | OrganizationMemberProfile | 'Project' | 'Organization' | 'OrganizationMemberProfile' | 'Dashboard' | 'Space' | 'SavedChart' | 'InviteLink' | 'Job' | 'SqlRunner' | 'Analytics' | 'Explore' | 'UnderlyingData' | 'ExportCsv' | 'CsvJobResult' | 'PinnedItems' | 'Validation' | 'Group' | 'ChangeCsvResults' | 'ScheduledDeliveries' | 'DashboardComments' | 'CustomSql' | 'CompileProject' | 'SemanticViewer' | 'VirtualView' | 'Tags' | 'PersonalAccessToken' | 'all';
|
11
|
+
type Subject = Project | Organization | OrganizationMemberProfile | 'Project' | 'Organization' | 'OrganizationMemberProfile' | 'Dashboard' | 'Space' | 'SavedChart' | 'InviteLink' | 'Job' | 'SqlRunner' | 'Analytics' | 'Explore' | 'UnderlyingData' | 'ExportCsv' | 'CsvJobResult' | 'PinnedItems' | 'Validation' | 'Group' | 'ChangeCsvResults' | 'ScheduledDeliveries' | 'DashboardComments' | 'CustomSql' | 'CompileProject' | 'SemanticViewer' | 'VirtualView' | 'Tags' | 'PersonalAccessToken' | 'MetricsTree' | 'all';
|
12
12
|
type PossibleAbilities = [
|
13
13
|
AbilityAction,
|
14
14
|
Subject | ForcedSubject<Exclude<Subject, 'all'>>
|