Permission fixes
This commit is contained in:
parent
a5cb2e2cde
commit
9a1ca59e5b
|
@ -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");
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue