File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,11 @@ class Project extends Interfaces {
166
166
167
167
readonly rootDirectory : Secured < LinkTo < 'Directory' > | null > ;
168
168
169
+ @Field ( {
170
+ description : 'Is the requesting user a member of this project?' ,
171
+ } )
172
+ readonly isMember : boolean ;
173
+
169
174
@Field ( {
170
175
description : stripIndent `
171
176
Whether or not this project and its associated languages (via engagements)
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ export class ProjectRepository extends CommonRepository {
133
133
merge ( 'props' , 'changedProps' , {
134
134
type : 'node.type' ,
135
135
pinned : 'exists((:User { id: $requestingUser })-[:pinned]->(node))' ,
136
+ isMember : '"member:true" in props.scopedRoles' ,
136
137
rootDirectory : 'rootDirectory { .id }' ,
137
138
primaryPartnership : 'primaryPartnership { .id }' ,
138
139
primaryLocation : 'primaryLocation { .id }' ,
You can’t perform that action at this time.
0 commit comments