Merge pull request #4968 from emanuelschuetze/fix-submitter-check

Fixed motion submitter check.
This commit is contained in:
Finn Stutzenstein 2019-09-02 11:48:52 +02:00 committed by GitHub
commit 8f0030560a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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': {