From f33d0f1f393e58acd78df4ec482eb5a65f308c2c Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Sun, 1 Feb 2026 23:33:39 +0530 Subject: [PATCH] Allow staff to create bookings --- .../android/trisolarisserver/controller/booking/BookingFlow.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/android/trisolarisserver/controller/booking/BookingFlow.kt b/src/main/kotlin/com/android/trisolarisserver/controller/booking/BookingFlow.kt index a9992c2..0249f0f 100644 --- a/src/main/kotlin/com/android/trisolarisserver/controller/booking/BookingFlow.kt +++ b/src/main/kotlin/com/android/trisolarisserver/controller/booking/BookingFlow.kt @@ -674,7 +674,7 @@ class BookingFlow( } private fun requireActor(propertyId: UUID, principal: MyPrincipal?): com.android.trisolarisserver.models.property.AppUser { - val resolved = requireRole(propertyAccess, propertyId, principal, Role.ADMIN, Role.MANAGER) + val resolved = requireRole(propertyAccess, propertyId, principal, Role.ADMIN, Role.MANAGER, Role.STAFF) return appUserRepo.findById(resolved.userId).orElseThrow { ResponseStatusException(HttpStatus.UNAUTHORIZED, "User not found") }