不可租借給為登入使用者可以租借

This commit is contained in:
Peter Chiu 2023-09-10 21:25:50 +08:00
parent 864358bd69
commit ac072f3ed7
1 changed files with 1 additions and 1 deletions

View File

@ -563,6 +563,6 @@ class Property
end
def can_be_hired_frontend
user = OrbitHelper.current_user
self.can_be_hired || (user && (user.is_admin? || property.owners.include?(user.member_profile_id)))
self.can_be_hired || user
end
end