Merge pull request #4968 from emanuelschuetze/fix-submitter-check
Fixed motion submitter check.
This commit is contained in:
commit
8f0030560a
@ -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': {
|
||||||
|
Loading…
Reference in New Issue
Block a user