Hide shifts export in shifts overview

2022-03-24
Luca 3 years ago
parent 1c10c21ad2
commit a562914339

@ -311,7 +311,7 @@ function view_user_shifts()
function ical_hint() function ical_hint()
{ {
$user = auth()->user(); $user = auth()->user();
if(!auth()->can('ical')) { if(!config('enable_shifts_export') || !auth()->can('ical')) {
return ''; return '';
} }

Loading…
Cancel
Save