Skip to content

Commit 5b2e904

Browse files
committed
Bug-fix: remove has_all_permissions helper
1 parent 765d7f1 commit 5b2e904

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/livewire/ticket-details/responsible.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@else
2828
<span class="text-gray-400 font-medium text-sm">@lang('Not assigned yet!')</span>
2929
@endif
30-
@if((auth()->user()->can('update all tickets') || (auth()->user()->can('Update own tickets') && ($ticket->owner_id === auth()->user() || $ticket->responsible_id === auth()->user()->id))) && has_all_permissions(auth()->user(), 'assign-tickets'))
30+
@if((auth()->user()->can('update all tickets') || (auth()->user()->can('Update own tickets') && ($ticket->owner_id === auth()->user() || $ticket->responsible_id === auth()->user()->id))) && auth()->user()->can('assign-tickets'))
3131
<button type="button" wire:click="update" class="bg-gray-100 shadow hover:bg-gray-200 hover:shadow-lg w-6 h-6 text-xs flex-row justify-center items-center rounded-lg text-gray-400">
3232
<i class="fa fa-pencil"></i>
3333
</button>

resources/views/livewire/ticket-details/status.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@else
1919
<div class="w-full flex flex-row justify-start items-center gap-5 updating-section">
2020
<x-status-span :status="$ticket->status" />
21-
@if((auth()->user()->can('update all tickets') || (auth()->user()->can('Update own tickets') && ($ticket->owner_id === auth()->user() || $ticket->responsible_id === auth()->user()->id))) && has_all_permissions(auth()->user(), 'change-status-tickets'))
21+
@if((auth()->user()->can('update all tickets') || (auth()->user()->can('Update own tickets') && ($ticket->owner_id === auth()->user() || $ticket->responsible_id === auth()->user()->id))) && auth()->user()->can('change-status-tickets'))
2222
<button type="button" wire:click="update" class="bg-gray-100 shadow hover:bg-gray-200 hover:shadow-lg w-6 h-6 text-xs flex-row justify-center items-center rounded-lg text-gray-400">
2323
<i class="fa fa-pencil"></i>
2424
</button>

0 commit comments

Comments
 (0)