File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
platforms/evoting-api/src/services Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -172,22 +172,6 @@ export class PollService {
172
172
return poll ;
173
173
}
174
174
175
-
176
- // Check if user is a member, admin, or participant of the group
177
- const group = await this . groupRepository
178
- . createQueryBuilder ( 'group' )
179
- . leftJoin ( 'group.members' , 'member' )
180
- . leftJoin ( 'group.admins' , 'admin' )
181
- . leftJoin ( 'group.participants' , 'participant' )
182
- . where ( 'group.id = :groupId' , { groupId : poll . groupId } )
183
- . andWhere ( '(member.id = :userId OR admin.id = :userId OR participant.id = :userId)' , { userId } )
184
- . getOne ( ) ;
185
-
186
- // If user is not in the group, don't show the poll
187
- if ( ! group ) {
188
- return null ;
189
- }
190
-
191
175
return poll ;
192
176
}
193
177
You can’t perform that action at this time.
0 commit comments