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 10bf7ed commit bec166b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/Backend/UserAppointmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
class UserAppointmentController extends Controller
{
public function __construct() {
if (auth()->user() == null) {
return redirect(route('login'));
}
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 bec166b

Please sign in to comment.