@@ -2,7 +2,6 @@ import { takeWhile } from 'lodash';
2
2
import { ProjectStep } from '../../../project/dto' ;
3
3
import { ProjectWorkflow } from '../../../project/workflow/project-workflow' ;
4
4
import {
5
- action ,
6
5
field ,
7
6
inherit ,
8
7
member ,
@@ -144,11 +143,14 @@ export const momentumProjectsTransitions = () =>
144
143
r . ProjectWorkflowEvent . isTransitions ( momentumProjectsTransitions ) ,
145
144
) . execute ,
146
145
r . Project . read . create
147
- . when ( member )
148
- . edit . specifically ( ( p ) => [
146
+ // eslint-disable-next-line prettier/prettier
147
+ . when ( member ) . edit //
148
+ . or . specifically ( ( p ) => [
149
149
p
150
150
. many ( 'rootDirectory' , 'otherLocations' , 'primaryLocation' )
151
- . edit . whenAny ( member , sensMediumOrLower ) . read ,
151
+ // eslint-disable-next-line prettier/prettier
152
+ . whenAny ( member , sensMediumOrLower ) . read //
153
+ . when ( member ) . edit ,
152
154
p
153
155
. many ( 'mouStart' , 'mouEnd' )
154
156
. read //
@@ -157,8 +159,7 @@ export const momentumProjectsTransitions = () =>
157
159
field ( 'status' , 'InDevelopment' ) ,
158
160
// Only allow until financial endorsement
159
161
// field('step', stepsUntilFinancialEndorsement),
160
- )
161
- [ action ] ( 'edit' ) ,
162
+ ) . edit ,
162
163
] )
163
164
. children ( ( c ) => c . posts . read . create ) ,
164
165
r . ProjectMember . read . when ( member ) . edit . create . delete ,
0 commit comments