Skip to content

Commit

Permalink
fix: appointment page
Browse files Browse the repository at this point in the history
  • Loading branch information
itsemon245 committed Jun 29, 2024
1 parent 347c20a commit 10bf7ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Backend/UserAppointmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class UserAppointmentController extends Controller
{
public function __construct() {
if (request('type') != 'consultation'){
dd(auth()->user());
if(!auth()->user()->hasRole('super admin')){
abort(403, 'You don\'t have access to this page');
}
Expand Down

0 comments on commit 10bf7ed

Please sign in to comment.