fix permissions
This commit is contained in:
@@ -96,10 +96,10 @@ function FahrzeugBuchungen() {
|
||||
const { user } = useAuth();
|
||||
const { hasPermission } = usePermissionContext();
|
||||
const notification = useNotification();
|
||||
const canCreate = hasPermission('kalender:create_bookings');
|
||||
const canWrite = hasPermission('kalender:edit_bookings');
|
||||
const canCancelOwn = hasPermission('kalender:cancel_own_bookings');
|
||||
const canChangeBuchungsArt = hasPermission('kalender:manage_categories');
|
||||
const canCreate = hasPermission('kalender:manage_bookings');
|
||||
const canWrite = hasPermission('kalender:manage_bookings');
|
||||
const canCancelOwn = hasPermission('kalender:manage_bookings');
|
||||
const canChangeBuchungsArt = hasPermission('kalender:create');
|
||||
|
||||
// ── Week navigation ────────────────────────────────────────────────────────
|
||||
const [currentWeekStart, setCurrentWeekStart] = useState<Date>(() =>
|
||||
|
||||
Reference in New Issue
Block a user