Skip to content

Commit

Permalink
Improve default permission allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Feb 28, 2022
1 parent 2162051 commit 348b4d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Event;
use Backend;
use Backend\Models\UserRole;
use Winter\Pages\Classes\Controller;
use Winter\Pages\Classes\Page as StaticPage;
use Winter\Pages\Classes\Router;
Expand Down Expand Up @@ -41,21 +42,25 @@ public function registerPermissions()
'winter.pages.manage_pages' => [
'tab' => 'winter.pages::lang.page.tab',
'order' => 200,
'roles' => [UserRole::CODE_DEVELOPER, UserRole::CODE_PUBLISHER],
'label' => 'winter.pages::lang.page.manage_pages'
],
'winter.pages.manage_menus' => [
'tab' => 'winter.pages::lang.page.tab',
'order' => 200,
'roles' => [UserRole::CODE_DEVELOPER, UserRole::CODE_PUBLISHER],
'label' => 'winter.pages::lang.page.manage_menus'
],
'winter.pages.manage_content' => [
'tab' => 'winter.pages::lang.page.tab',
'order' => 200,
'roles' => [UserRole::CODE_DEVELOPER, UserRole::CODE_PUBLISHER],
'label' => 'winter.pages::lang.page.manage_content'
],
'winter.pages.access_snippets' => [
'tab' => 'winter.pages::lang.page.tab',
'order' => 200,
'roles' => [UserRole::CODE_DEVELOPER, UserRole::CODE_PUBLISHER],
'label' => 'winter.pages::lang.page.access_snippets'
]
];
Expand Down

0 comments on commit 348b4d1

Please sign in to comment.