From 216c279d4850d5f6f56ca404efea66dbaa736931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Mon, 2 Sep 2019 11:22:38 +0200 Subject: [PATCH] Fixed motion submitter check. --- .../app/site/motions/services/local-permissions.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app/site/motions/services/local-permissions.service.ts b/client/src/app/site/motions/services/local-permissions.service.ts index 26ff547ee..a881745e1 100644 --- a/client/src/app/site/motions/services/local-permissions.service.ts +++ b/client/src/app/site/motions/services/local-permissions.service.ts @@ -101,7 +101,7 @@ export class LocalPermissionsService { motion.submitters && motion.submitters.length && !this.operator.isAnonymous && - motion.submitters.some(submitter => submitter.id === this.operator.user.id)) + motion.submitters.some(submitter => submitter.user_id === this.operator.user.id)) ); } case 'update_submitters': { @@ -117,7 +117,7 @@ export class LocalPermissionsService { motion.state.allow_submitter_edit && motion.submitters && motion.submitters.length && - motion.submitters.some(submitter => submitter.id === this.operator.user.id) + motion.submitters.some(submitter => submitter.user_id === this.operator.user.id) ); } case 'change_state': { @@ -133,7 +133,7 @@ export class LocalPermissionsService { motion.state.allow_submitter_edit && !this.operator.isAnonymous && motion.submitters && - motion.submitters.some(submitter => submitter.id === this.operator.user.id)) + motion.submitters.some(submitter => submitter.user_id === this.operator.user.id)) ); } case 'change_metadata': {