Fixed motion submitter check.

This commit is contained in:
Emanuel Schütze 2019-09-02 11:22:38 +02:00
parent ecd107bf73
commit 216c279d48

View File

@ -101,7 +101,7 @@ export class LocalPermissionsService {
motion.submitters && motion.submitters &&
motion.submitters.length && motion.submitters.length &&
!this.operator.isAnonymous && !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': { case 'update_submitters': {
@ -117,7 +117,7 @@ export class LocalPermissionsService {
motion.state.allow_submitter_edit && motion.state.allow_submitter_edit &&
motion.submitters && motion.submitters &&
motion.submitters.length && 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': { case 'change_state': {
@ -133,7 +133,7 @@ export class LocalPermissionsService {
motion.state.allow_submitter_edit && motion.state.allow_submitter_edit &&
!this.operator.isAnonymous && !this.operator.isAnonymous &&
motion.submitters && 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': { case 'change_metadata': {