hide 'show as agenda item' for non authorized users (fixes #2894)

This commit is contained in:
FinnStutzenstein 2017-02-24 08:57:02 +01:00
parent f69781b88b
commit 1c1a2bef09
4 changed files with 6 additions and 4 deletions

View File

@ -157,7 +157,7 @@ angular.module('OpenSlidesApp.assignments.site', [
label: gettextCatalog.getString('Show as agenda item'), label: gettextCatalog.getString('Show as agenda item'),
description: gettextCatalog.getString('If deactivated the election appears as internal item on agenda.') 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 // parent item

View File

@ -83,7 +83,8 @@ angular.module('OpenSlidesApp.motions.motionBlock', [])
templateOptions: { templateOptions: {
label: gettextCatalog.getString('Show as agenda item'), label: gettextCatalog.getString('Show as agenda item'),
description: gettextCatalog.getString('If deactivated it appears as internal item on agenda.') 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', key: 'agenda_parent_item_id',

View File

@ -374,7 +374,7 @@ angular.module('OpenSlidesApp.motions.site', [
label: gettextCatalog.getString('Show as agenda item'), label: gettextCatalog.getString('Show as agenda item'),
description: gettextCatalog.getString('If deactivated the motion appears as internal item on agenda.') 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 // parent item

View File

@ -122,7 +122,8 @@ angular.module('OpenSlidesApp.topics.site', ['OpenSlidesApp.topics', 'OpenSlides
templateOptions: { templateOptions: {
label: gettextCatalog.getString('Show as agenda item'), label: gettextCatalog.getString('Show as agenda item'),
description: gettextCatalog.getString('If deactivated it appears as internal item on agenda.') description: gettextCatalog.getString('If deactivated it appears as internal item on agenda.')
} },
hide: !operator.hasPerms('agenda.can_manage')
}); });
// parent item // parent item