Merge pull request #3006 from FinnStutzenstein/Issue2894
hide 'show as agenda item' for non authorized users (fixes #2894)
This commit is contained in:
commit
e67d67a07f
@ -157,7 +157,7 @@ angular.module('OpenSlidesApp.assignments.site', [
|
||||
label: gettextCatalog.getString('Show as agenda item'),
|
||||
description: gettextCatalog.getString('If deactivated the election appears as internal item on agenda.')
|
||||
},
|
||||
hide: !operator.hasPerms('assignments.can_manage')
|
||||
hide: !(operator.hasPerms('assignments.can_manage') && operator.hasPerms('agenda.can_manage'))
|
||||
}];
|
||||
|
||||
// parent item
|
||||
|
@ -83,7 +83,8 @@ angular.module('OpenSlidesApp.motions.motionBlock', [])
|
||||
templateOptions: {
|
||||
label: gettextCatalog.getString('Show as agenda item'),
|
||||
description: gettextCatalog.getString('If deactivated it appears as internal item on agenda.')
|
||||
}
|
||||
},
|
||||
hide: !(operator.hasPerms('motions.can_manage') && operator.hasPerms('agenda.can_manage'))
|
||||
},
|
||||
{
|
||||
key: 'agenda_parent_item_id',
|
||||
|
@ -374,7 +374,7 @@ angular.module('OpenSlidesApp.motions.site', [
|
||||
label: gettextCatalog.getString('Show as agenda item'),
|
||||
description: gettextCatalog.getString('If deactivated the motion appears as internal item on agenda.')
|
||||
},
|
||||
hide: !operator.hasPerms('motions.can_manage')
|
||||
hide: !(operator.hasPerms('motions.can_manage') && operator.hasPerms('agenda.can_manage'))
|
||||
}];
|
||||
|
||||
// parent item
|
||||
|
@ -122,7 +122,8 @@ angular.module('OpenSlidesApp.topics.site', ['OpenSlidesApp.topics', 'OpenSlides
|
||||
templateOptions: {
|
||||
label: gettextCatalog.getString('Show as agenda item'),
|
||||
description: gettextCatalog.getString('If deactivated it appears as internal item on agenda.')
|
||||
}
|
||||
},
|
||||
hide: !operator.hasPerms('agenda.can_manage')
|
||||
});
|
||||
|
||||
// parent item
|
||||
|
Loading…
Reference in New Issue
Block a user