Skip to content

Commit

Permalink
Removed second add in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bertrams committed Oct 18, 2023
1 parent 676c914 commit c43a59c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Admin/NewsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,6 @@ public function configureViews(ViewCollection $viewCollection): void
$listToolbarActions[] = new ToolbarAction('sulu_admin.export');
}

if ($this->securityChecker->hasPermission(News::SECURITY_CONTEXT, PermissionTypes::ADD)) {
$listToolbarActions[] = new ToolbarAction('sulu_admin.add');
}

/* //publish/unpublish toolbar actions
$formToolbarActions = [
new ToolbarAction('sulu_admin.save'),
new ToolbarAction('sulu_admin.delete'),
new TogglerToolbarAction(
'sulu_news.published',
'published',
'publish',
'unpublish'
),
];*/
###
if ($this->securityChecker->hasPermission(News::SECURITY_CONTEXT, PermissionTypes::LIVE)) {

$editDropdownToolbarActions = [
Expand Down

0 comments on commit c43a59c

Please sign in to comment.