Skip to content

Commit

Permalink
Adding the settings permissions seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Jan 18, 2016
1 parent b25769d commit 31f7494
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Seeds/PermissionsTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function run()
'description' => 'Foundation permissions group',
],
'permissions' => array_merge(
$this->getSettingsSeeds(),
$this->getLogViewerSeeds()
),
],
Expand All @@ -37,6 +38,22 @@ public function run()
| Other Functions
| ------------------------------------------------------------------------------------------------
*/
/**
* Get the Settings permissions.
*
* @return array
*/
private function getSettingsSeeds()
{
return [
[
'name' => 'Settings - View the general settings',
'description' => 'Allow to view the general settings.',
'slug' => 'foundation.settings.general',
]
];
}

/**
* Get the LogViewer permissions.
*
Expand Down

0 comments on commit 31f7494

Please sign in to comment.