@lightdash/common 0.1384.0 → 0.1385.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -149,6 +149,10 @@ const applyOrganizationMemberStaticAbilities = {
149
149
  applyOrganizationMemberStaticAbilities.interactive_viewer(member, {
150
150
  can,
151
151
  });
152
+ can('manage', 'Space', {
153
+ organizationUuid: member.organizationUuid,
154
+ isPrivate: false,
155
+ });
152
156
  can('create', 'Space', {
153
157
  organizationUuid: member.organizationUuid,
154
158
  });
@@ -376,7 +376,7 @@ describe('Organization member permissions', () => {
376
376
  expect(ability.can('manage', (0, ability_1.subject)('Space', {
377
377
  organizationUuid: organizationMemberAbility_mock_1.ORGANIZATION_EDITOR.organizationUuid,
378
378
  isPrivate: false,
379
- }))).toEqual(false);
379
+ }))).toEqual(true);
380
380
  expect(ability.can('view', (0, ability_1.subject)('Space', {
381
381
  organizationUuid: organizationMemberAbility_mock_1.ORGANIZATION_EDITOR.organizationUuid,
382
382
  isPrivate: true,
@@ -132,6 +132,10 @@ exports.projectMemberAbilities = {
132
132
  can('create', 'Space', {
133
133
  projectUuid: member.projectUuid,
134
134
  });
135
+ can('manage', 'Space', {
136
+ projectUuid: member.projectUuid,
137
+ isPrivate: false,
138
+ });
135
139
  can('manage', 'Job');
136
140
  can('manage', 'PinnedItems', {
137
141
  projectUuid: member.projectUuid,
@@ -357,7 +357,7 @@ describe('Project member permissions', () => {
357
357
  expect(ability.can('manage', (0, ability_1.subject)('Space', {
358
358
  projectUuid,
359
359
  isPrivate: false,
360
- }))).toEqual(false);
360
+ }))).toEqual(true);
361
361
  expect(ability.can('view', (0, ability_1.subject)('Space', {
362
362
  projectUuid,
363
363
  isPrivate: true,
@@ -23,5 +23,9 @@ export declare enum FeatureFlags {
23
23
  /**
24
24
  * Enable dashboard comments
25
25
  */
26
- DashboardComments = "dashboard-comments-enabled"
26
+ DashboardComments = "dashboard-comments-enabled",
27
+ /**
28
+ * Enable metric trees
29
+ */
30
+ MetricTrees = "metric-trees"
27
31
  }
@@ -33,4 +33,8 @@ var FeatureFlags;
33
33
  * Enable dashboard comments
34
34
  */
35
35
  FeatureFlags["DashboardComments"] = "dashboard-comments-enabled";
36
+ /**
37
+ * Enable metric trees
38
+ */
39
+ FeatureFlags["MetricTrees"] = "metric-trees";
36
40
  })(FeatureFlags = exports.FeatureFlags || (exports.FeatureFlags = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.1384.0",
3
+ "version": "0.1385.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [