hide 'show as agenda item' for non authorized users (fixes #2894)
This commit is contained in:
parent
f69781b88b
commit
1c1a2bef09
@ -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
|
||||||
|
@ -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',
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user