Merge pull request #4149 from MaximilianKrambach/fixMotionPermission
fix motion change permission
This commit is contained in:
commit
c26daad07d
@ -1,5 +1,5 @@
|
|||||||
<os-head-bar
|
<os-head-bar
|
||||||
[mainButton]="perms.isAllowed('update_motion', motion)"
|
[mainButton]="perms.isAllowed('update', motion)"
|
||||||
mainButtonIcon="edit"
|
mainButtonIcon="edit"
|
||||||
[nav]="false"
|
[nav]="false"
|
||||||
[editMode]="editMotion"
|
[editMode]="editMotion"
|
||||||
|
@ -82,9 +82,10 @@ export class LocalPermissionsService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
this.operator.hasPerms('motions.can_manage') &&
|
this.operator.hasPerms('motions.can_manage') ||
|
||||||
motion.state.allow_submitter_edit &&
|
(motion.state.allow_submitter_edit &&
|
||||||
motion.submitters.some(submitter => submitter.id === this.operator.user.id)
|
motion.submitters &&
|
||||||
|
motion.submitters.some(submitter => submitter.id === this.operator.user.id))
|
||||||
);
|
);
|
||||||
case 'update_submitters':
|
case 'update_submitters':
|
||||||
return this.operator.hasPerms('motions.can_manage');
|
return this.operator.hasPerms('motions.can_manage');
|
||||||
|
Loading…
Reference in New Issue
Block a user