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:
parent
e9740ebf69
commit
bbf512f674
@ -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
|
||||
|
@ -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()
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user