if the user role is admin dont show the booking section
All checks were successful
Build frontend / build (push) Successful in 50s

This commit is contained in:
mouazkh
2026-05-30 13:45:32 +03:00
parent 8d4ac3ddd6
commit d11f105dfc

View File

@ -1289,7 +1289,7 @@ export default function PropertyDetailsPage() {
{/* Sidebar */} {/* Sidebar */}
<div className="space-y-4"> <div className="space-y-4">
{/* Booking Card */} {/* Booking Card */}
{property.isRent && ( {property.isRent && !AuthService.isAdmin() && (
<motion.div <motion.div
initial={{ opacity: 0, x: 20 }} initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }} animate={{ opacity: 1, x: 0 }}