Merge pull request #3006 from FinnStutzenstein/Issue2894

hide 'show as agenda item' for non authorized users (fixes #2894)
This commit is contained in:
Emanuel Schütze 2017-02-24 15:44:25 +01:00 committed by GitHub
commit e67d67a07f
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'),
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

View File

@ -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',

View File

@ -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

View File

@ -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