Skip to content

Commit

Permalink
Merge pull request #1011 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix invalid role
  • Loading branch information
dbarzin authored Dec 10, 2024
2 parents 90071cd + 98bc122 commit 08d9753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/PatchingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PatchingController extends Controller
{
public function index(Request $request)
{
abort_if(Gate::denies('patching_show'), Response::HTTP_FORBIDDEN, '403 Forbidden');
abort_if(Gate::denies('patching_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');

// Get Attributes
$attributes_list = $this->getAttributes();
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
{{ trans('panel.menu.tools') }}
</a>
<div class="dropdown-menu">
@can('patching_show')
@can('patching_access')
<a class="dropdown-item" href="/admin/patching/index">
<i class="fa-fw fas fa-wrench"></i>
{{ trans('panel.menu.patching') }}
Expand Down

0 comments on commit 08d9753

Please sign in to comment.