|
|
|
@ -22,7 +22,10 @@ module Trustie
|
|
|
|
|
|
|
|
|
|
def sync_user(user)
|
|
|
|
|
u = add_user(user)
|
|
|
|
|
user.save! if u
|
|
|
|
|
if user.mail_notification.blank? or user.mail_notification == "only_assigned" or user.mail_notification == "only_my_events"
|
|
|
|
|
user.mail_notification = "day"
|
|
|
|
|
end
|
|
|
|
|
user.save!
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def sync_project(project, opt={})
|
|
|
|
|