Only show add segment and content buttons when having the right permission. And fixed the hardcoded addable types to segment