Skip to content
Snippets Groups Projects
Unverified Commit 187a73c9 authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Merge pull request #923 from noesya/extranet_validation

Empêche l'activation des alumni si pas de source
parents 56539db9 0e17a82d
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ class Communication::Extranet < ApplicationRecord
validates_presence_of :name, :host
validates :logo, size: { less_than: 1.megabytes }
validates :favicon, size: { less_than: 1.megabytes }
validates_presence_of :about_type, :about_id, if: :feature_alumni
before_validation :sanitize_fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment