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