From 31f74948b6580ca0939679772ed8627c6009d22e Mon Sep 17 00:00:00 2001 From: ARCANEDEV Date: Mon, 18 Jan 2016 21:54:57 +0000 Subject: [PATCH] Adding the settings permissions seeds --- src/Seeds/PermissionsTableSeeder.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Seeds/PermissionsTableSeeder.php b/src/Seeds/PermissionsTableSeeder.php index 3eb7462..602ff27 100644 --- a/src/Seeds/PermissionsTableSeeder.php +++ b/src/Seeds/PermissionsTableSeeder.php @@ -27,6 +27,7 @@ public function run() 'description' => 'Foundation permissions group', ], 'permissions' => array_merge( + $this->getSettingsSeeds(), $this->getLogViewerSeeds() ), ], @@ -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. *