不可租借給為登入使用者可以租借
This commit is contained in:
parent
864358bd69
commit
ac072f3ed7
|
@ -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
|
Loading…
Reference in New Issue