Skip to content

Commit c37c332

Browse files
committed
enable validator: root path is reserved for home
1 parent 2b813db commit c37c332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/communication/website/permalink.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Communication::Website::Permalink < ApplicationRecord
3838

3939
validates :path, presence: true
4040
validates :path, uniqueness: { scope: :website_id }, unless: :is_current
41-
# TODO: validate :root_path_is_reserved_for_home
41+
validate :root_path_is_reserved_for_home
4242

4343
before_validation :set_university, on: :create
4444
# We should not sync the about object whenever we do something with the permalink, as they can be changed during a sync.

0 commit comments

Comments
 (0)