Permission fixes

This commit is contained in:
frederikpyt 2020-07-29 12:30:05 +02:00
parent a5cb2e2cde
commit 9a1ca59e5b
2 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,8 @@ class ExternalLinkController extends Controller
{
function __construct()
{
$this->middleware([ "auth" ]);
$this->middleware("permission:link.external.list")->only("index");
$this->middleware("permission:link.external.create")->only(["create", "store"]);
$this->middleware("permission:link.external.show")->only("show");

View File

@ -98,8 +98,15 @@ class PermissionSeeder extends Seeder
"washing.machine.reservation.edit" => "Allows editing of washing machine reservations",
"washing.machine.reservation.delete" => "Allows deletion of washing machine reservations",
"roles.create" => "Create a new role",
"roles.list" => "Shows all roles",
"roles.show" => "Shows a specific role",
"roles.edit" => "Allows editing of roles",
"roles.delete" => "Allows deletion of roles",
//Allows access to the admin panel
"admin.panel.show" => "Allows access to administration panel",
];
foreach ($permissions as $key => $value) {