Revert "Merge branch 'master' into develop"

This reverts commit 42178e26de, reversing
changes made to d876dd6055.
This commit is contained in:
2021-10-13 01:19:04 +01:00
parent 42178e26de
commit fc6d7d2b18
13 changed files with 1924 additions and 2271 deletions

24
database/seeders/NewPermissions.php Normal file → Executable file
View File

@@ -1,4 +1,24 @@
<?php
/*
* Copyright © 2020 Miguel Nogueira
*
* This file is part of Raspberry Staff Manager.
*
* Raspberry Staff Manager is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Raspberry Staff Manager is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Raspberry Staff Manager. If not, see <https://www.gnu.org/licenses/>.
*/
namespace Database\Seeders;
use Illuminate\Database\Seeder;
@@ -15,7 +35,7 @@ class NewPermissions extends Seeder
public function run()
{
$developer = Role::create([
'name' => 'developer'
'name' => 'developer',
]);
$admin = Role::where('name', 'admin')->first();
@@ -26,7 +46,5 @@ class NewPermissions extends Seeder
$developer->givePermissionTo('admin.developertools.use');
$admin->givePermissionTo('admin.settings.view');
$admin->givePermissionTo('admin.settings.edit');
}
}