Require an absolute path for Project#path
This commit is contained in:
parent
c324246186
commit
b919e97296
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue