File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export abstract class ProjectWorkflowEvent extends WorkflowEvent(
16
16
static readonly Props = keysOf < ProjectWorkflowEvent > ( ) ;
17
17
static readonly SecuredProps = keysOf < SecuredProps < ProjectWorkflowEvent > > ( ) ;
18
18
static readonly BaseNodeProps = WorkflowEvent . BaseNodeProps ;
19
+ static readonly ConfirmThisClassPassesSensitivityToPolicies = true ;
19
20
}
20
21
21
22
declare module '~/core/resources/map' {
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ import {
11
11
} from '../authorization/policy/conditions' ;
12
12
import { Workflow } from './define-workflow' ;
13
13
14
- export function WorkflowEventGranter < W extends Workflow > ( workflow : W ) {
14
+ export function WorkflowEventGranter <
15
+ W extends Workflow ,
16
+ EventClass extends W [ 'eventResource' ] ,
17
+ > ( workflow : W ) {
15
18
type State = Workflow [ 'state' ] ;
16
19
type Names = Workflow [ 'transition' ] [ 'name' ] ;
17
- type EventClass = Workflow [ 'eventResource' ] ;
18
20
19
21
abstract class WorkflowEventGranterClass extends ResourceGranter < EventClass > {
20
22
get read ( ) {
You can’t perform that action at this time.
0 commit comments