Commit Graph
2 Commits
Author SHA1 Message Date
Daniel Lackenby c6b1754bd7 Limit Admin Menu for Content
Limit the Content Menu item by whether you have the base Permission
EditOwnContent. EditContent implies EditOwnContent so either permission
(which you need at least one of to do any management of content be it
create or edit) will allow this menu item to display.
2015-11-18 16:08:50 +00:00
Daniel Lackenby 4946252f7e Filter out when no contentTypeNames provided
Previously, when no content type names where provided (from a prior
conditional statement, so there is an initialized array but it is empty)
then the filtering steps are skipped and instead of serving "no content
types", as an empty array would state: all content types are served.
When contentTypeNamed.Length == 0, still .Select() as this is safe for
empty collections and will filter out all types in this event.
2015-11-17 15:47:41 +00:00