1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

validate birthday in past

This commit is contained in:
Sylvain 2021-10-21 09:28:41 +02:00
parent e9740ebf69
commit bbf512f674
3 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@
- Updated SSO documentation
- Improved stripe subscription process with better error handling
- The upgrade script will check and report the ability to access the hub API
- Fix a bug: users can set their birthdate in the future
- Fix a bug: the upgrade script won't add environment variables that are already present anymore
- Fix a bug: admin cannot take or renew a subscription for a member from member/edit interface
- Fix a bug: missing translations

View File

@ -100,7 +100,8 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
format: Fablab.uibDateFormat,
opened: false,
options: {
startingDay: Fablab.weekStartingDay
startingDay: Fablab.weekStartingDay,
maxDate: new Date()
}
};

View File

@ -28,7 +28,7 @@ class StatisticProfile < ApplicationRecord
# Projects that the current user is the author
has_many :my_projects, foreign_key: :author_statistic_profile_id, class_name: 'Project', dependent: :destroy
validates :check_birthday_in_past
validate :check_birthday_in_past
def str_gender
gender ? 'male' : 'female'