Require an absolute path for Project#path

This commit is contained in:
0x1eef 2024-04-26 16:43:29 -03:00
parent c324246186
commit b919e97296

View file

@ -13,6 +13,7 @@ class Twenty::Project < Sequel::Model
def validate
super
errors.add(:path, "does not exist on disk") if !path_exist?
errors.add(:path, "is not absolute") if !File.absolute_path?(path)
end
##