Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
797f777900 | ||
|
|
04a8a72491 | ||
|
|
a1a6dcffca | ||
|
|
d31402734b | ||
|
|
5180ca0cdd | ||
|
|
e5802895ce | ||
|
|
da1a3449ce | ||
|
|
2b2f721ef4 | ||
|
|
62114336cf | ||
|
|
4f48d1b4dd | ||
|
|
d6d064f875 | ||
|
|
6d8649b9d3 | ||
|
|
39deb03855 | ||
|
|
70036a7ad0 | ||
|
|
68d421b978 | ||
|
|
268a9db47e |
@@ -75,9 +75,10 @@ group :test do
|
|||||||
gem "mocha"
|
gem "mocha"
|
||||||
end
|
end
|
||||||
|
|
||||||
if File.exists?('Gemfile.local')
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||||
|
if File.exists?(local_gemfile)
|
||||||
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
|
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
|
||||||
instance_eval File.read('Gemfile.local')
|
instance_eval File.read(local_gemfile)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Load plugins' Gemfiles
|
# Load plugins' Gemfiles
|
||||||
|
|||||||
@@ -131,14 +131,6 @@ class AccountController < ApplicationController
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def logout_user
|
|
||||||
if User.current.logged?
|
|
||||||
cookies.delete :autologin
|
|
||||||
Token.delete_all(["user_id = ? AND action = ?", User.current.id, 'autologin'])
|
|
||||||
self.logged_user = nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def authenticate_user
|
def authenticate_user
|
||||||
if Setting.openid? && using_open_id?
|
if Setting.openid? && using_open_id?
|
||||||
open_id_authenticate(params[:openid_url])
|
open_id_authenticate(params[:openid_url])
|
||||||
|
|||||||
@@ -126,6 +126,15 @@ class ApplicationController < ActionController::Base
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Logs out current user
|
||||||
|
def logout_user
|
||||||
|
if User.current.logged?
|
||||||
|
cookies.delete :autologin
|
||||||
|
Token.delete_all(["user_id = ? AND action = ?", User.current.id, 'autologin'])
|
||||||
|
self.logged_user = nil
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# check if login is globally required to access the application
|
# check if login is globally required to access the application
|
||||||
def check_if_login_required
|
def check_if_login_required
|
||||||
# no check needed if user is already logged in
|
# no check needed if user is already logged in
|
||||||
|
|||||||
@@ -65,6 +65,24 @@ class MyController < ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Destroys user's account
|
||||||
|
def destroy
|
||||||
|
@user = User.current
|
||||||
|
unless @user.own_account_deletable?
|
||||||
|
redirect_to :action => 'account'
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
if request.post? && params[:confirm]
|
||||||
|
@user.destroy
|
||||||
|
if @user.destroyed?
|
||||||
|
logout_user
|
||||||
|
flash[:notice] = l(:notice_account_deleted)
|
||||||
|
end
|
||||||
|
redirect_to home_path
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# Manage user's password
|
# Manage user's password
|
||||||
def password
|
def password
|
||||||
@user = User.current
|
@user = User.current
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ class Token < ActiveRecord::Base
|
|||||||
|
|
||||||
# Delete all expired tokens
|
# Delete all expired tokens
|
||||||
def self.destroy_expired
|
def self.destroy_expired
|
||||||
Token.delete_all ["action <> 'feeds' AND created_on < ?", Time.now - @@validity_time]
|
Token.delete_all ["action NOT IN (?) AND created_on < ?", ['feeds', 'api'], Time.now - @@validity_time]
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|||||||
+15
-5
@@ -68,7 +68,7 @@ class User < Principal
|
|||||||
MAIL_LENGTH_LIMIT = 60
|
MAIL_LENGTH_LIMIT = 60
|
||||||
|
|
||||||
validates_presence_of :login, :firstname, :lastname, :mail, :if => Proc.new { |user| !user.is_a?(AnonymousUser) }
|
validates_presence_of :login, :firstname, :lastname, :mail, :if => Proc.new { |user| !user.is_a?(AnonymousUser) }
|
||||||
validates_uniqueness_of :login, :if => Proc.new { |user| !user.login.blank? }, :case_sensitive => false
|
validates_uniqueness_of :login, :if => Proc.new { |user| user.login_changed? && user.login.present? }, :case_sensitive => false
|
||||||
validates_uniqueness_of :mail, :if => Proc.new { |user| !user.mail.blank? }, :case_sensitive => false
|
validates_uniqueness_of :mail, :if => Proc.new { |user| !user.mail.blank? }, :case_sensitive => false
|
||||||
# Login must contain lettres, numbers, underscores only
|
# Login must contain lettres, numbers, underscores only
|
||||||
validates_format_of :login, :with => /^[a-z0-9_\-@\.]*$/i
|
validates_format_of :login, :with => /^[a-z0-9_\-@\.]*$/i
|
||||||
@@ -284,14 +284,18 @@ class User < Principal
|
|||||||
|
|
||||||
# Return user's RSS key (a 40 chars long string), used to access feeds
|
# Return user's RSS key (a 40 chars long string), used to access feeds
|
||||||
def rss_key
|
def rss_key
|
||||||
token = self.rss_token || Token.create(:user => self, :action => 'feeds')
|
if rss_token.nil?
|
||||||
token.value
|
create_rss_token(:action => 'feeds')
|
||||||
|
end
|
||||||
|
rss_token.value
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return user's API key (a 40 chars long string), used to access the API
|
# Return user's API key (a 40 chars long string), used to access the API
|
||||||
def api_key
|
def api_key
|
||||||
token = self.api_token || self.create_api_token(:action => 'api')
|
if api_token.nil?
|
||||||
token.value
|
create_api_token(:action => 'api')
|
||||||
|
end
|
||||||
|
api_token.value
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return an array of project ids for which the user has explicitly turned mail notifications on
|
# Return an array of project ids for which the user has explicitly turned mail notifications on
|
||||||
@@ -482,6 +486,12 @@ class User < Principal
|
|||||||
allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
|
allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Returns true if the user is allowed to delete his own account
|
||||||
|
def own_account_deletable?
|
||||||
|
Setting.unsubscribe? &&
|
||||||
|
(!admin? || User.active.first(:conditions => ["admin = ? AND id <> ?", true, id]).present?)
|
||||||
|
end
|
||||||
|
|
||||||
safe_attributes 'login',
|
safe_attributes 'login',
|
||||||
'firstname',
|
'firstname',
|
||||||
'lastname',
|
'lastname',
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
<p><%=l(:field_login)%>: <strong><%= link_to_user(@user, :format => :username) %></strong><br />
|
<p><%=l(:field_login)%>: <strong><%= link_to_user(@user, :format => :username) %></strong><br />
|
||||||
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p>
|
<%=l(:field_created_on)%>: <%= format_time(@user.created_on) %></p>
|
||||||
|
|
||||||
|
<% if @user.own_account_deletable? %>
|
||||||
|
<p><%= link_to(l(:button_delete_my_account), {:action => 'destroy'}, :class => 'icon icon-del') %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<h4><%= l(:label_feeds_access_key) %></h4>
|
<h4><%= l(:label_feeds_access_key) %></h4>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<h2><%=l(:label_confirmation)%></h2>
|
||||||
|
<div class="warning">
|
||||||
|
<p><%= simple_format l(:text_account_destroy_confirmation)%></p>
|
||||||
|
<p>
|
||||||
|
<% form_tag({}) do %>
|
||||||
|
<label><%= check_box_tag 'confirm', 1 %> <%= l(:general_text_Yes) %></label>
|
||||||
|
<%= submit_tag l(:button_delete_my_account) %> |
|
||||||
|
<%= link_to l(:button_cancel), :action => 'account' %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
@@ -10,6 +10,8 @@
|
|||||||
[l(:label_registration_manual_activation), "2"],
|
[l(:label_registration_manual_activation), "2"],
|
||||||
[l(:label_registration_automatic_activation), "3"]] %></p>
|
[l(:label_registration_automatic_activation), "3"]] %></p>
|
||||||
|
|
||||||
|
<p><%= setting_check_box :unsubscribe %></p>
|
||||||
|
|
||||||
<p><%= setting_text_field :password_min_length, :size => 6 %></p>
|
<p><%= setting_text_field :password_min_length, :size => 6 %></p>
|
||||||
|
|
||||||
<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p>
|
<p><%= setting_check_box :lost_password, :label => :label_password_lost %></p>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<%= label_tag "period_type_interval", l(:description_date_range_interval), :class => "hidden-for-sighted" %>
|
<%= label_tag "period_type_interval", l(:description_date_range_interval), :class => "hidden-for-sighted" %>
|
||||||
<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");', :id => "period_type_interval" %>
|
<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");', :id => "period_type_interval" %>
|
||||||
<span onclick="$('period_type_2').checked = true;">
|
<span onclick="$('period_type_interval').checked = true;Form.Element.enable('from');Form.Element.enable('to');Form.Element.disable('period');">
|
||||||
<%= l(:label_date_from_to,
|
<%= l(:label_date_from_to,
|
||||||
:start => ((label_tag "from", l(:description_date_from), :class => "hidden-for-sighted") +
|
:start => ((label_tag "from", l(:description_date_from), :class => "hidden-for-sighted") +
|
||||||
text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')),
|
text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')),
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ ar:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ bg:
|
|||||||
notice_gantt_chart_truncated: Мрежовият график е съкратен, понеже броят на обектите, които могат да бъдат показани е твърде голям (%{max})
|
notice_gantt_chart_truncated: Мрежовият график е съкратен, понеже броят на обектите, които могат да бъдат показани е твърде голям (%{max})
|
||||||
notice_issue_successful_create: Задача %{id} е създадена.
|
notice_issue_successful_create: Задача %{id} е създадена.
|
||||||
notice_issue_update_conflict: Задачата е била променена от друг потребител, докато вие сте я редактирали.
|
notice_issue_update_conflict: Задачата е била променена от друг потребител, докато вие сте я редактирали.
|
||||||
|
notice_account_deleted: Вашият профил беше премахнат без възможност за възстановяване.
|
||||||
|
|
||||||
error_can_t_load_default_data: "Грешка при зареждане на примерната информация: %{value}"
|
error_can_t_load_default_data: "Грешка при зареждане на примерната информация: %{value}"
|
||||||
error_scm_not_found: Несъществуващ обект в хранилището.
|
error_scm_not_found: Несъществуващ обект в хранилището.
|
||||||
@@ -384,6 +385,7 @@ bg:
|
|||||||
setting_issue_group_assignment: Разрешено назначаването на задачи на групи
|
setting_issue_group_assignment: Разрешено назначаването на задачи на групи
|
||||||
setting_default_issue_start_date_to_creation_date: Начална дата на новите задачи по подразбиране да бъде днешната дата
|
setting_default_issue_start_date_to_creation_date: Начална дата на новите задачи по подразбиране да бъде днешната дата
|
||||||
setting_commit_cross_project_ref: Отбелязване и приключване на задачи от други проекти, несвързани с конкретното хранилище
|
setting_commit_cross_project_ref: Отбелязване и приключване на задачи от други проекти, несвързани с конкретното хранилище
|
||||||
|
setting_unsubscribe: Потребителите могат да премахват профилите си
|
||||||
|
|
||||||
permission_add_project: Създаване на проект
|
permission_add_project: Създаване на проект
|
||||||
permission_add_subprojects: Създаване на подпроекти
|
permission_add_subprojects: Създаване на подпроекти
|
||||||
@@ -895,6 +897,7 @@ bg:
|
|||||||
button_show: Показване
|
button_show: Показване
|
||||||
button_edit_section: Редактиране на тази секция
|
button_edit_section: Редактиране на тази секция
|
||||||
button_export: Експорт
|
button_export: Експорт
|
||||||
|
button_delete_my_account: Премахване на моя профил
|
||||||
|
|
||||||
status_active: активен
|
status_active: активен
|
||||||
status_registered: регистриран
|
status_registered: регистриран
|
||||||
@@ -979,6 +982,7 @@ bg:
|
|||||||
text_issue_conflict_resolution_overwrite: Прилагане на моите промени (предишните коментари ще бъдат запазени, но някои други промени може да бъдат презаписани)
|
text_issue_conflict_resolution_overwrite: Прилагане на моите промени (предишните коментари ще бъдат запазени, но някои други промени може да бъдат презаписани)
|
||||||
text_issue_conflict_resolution_add_notes: Добавяне на моите коментари и отхвърляне на другите мои промени
|
text_issue_conflict_resolution_add_notes: Добавяне на моите коментари и отхвърляне на другите мои промени
|
||||||
text_issue_conflict_resolution_cancel: Отхвърляне на всички мои промени и презареждане на %{link}
|
text_issue_conflict_resolution_cancel: Отхвърляне на всички мои промени и презареждане на %{link}
|
||||||
|
text_account_destroy_confirmation: "Сигурен/на ли сте, че желаете да продължите?\nВашият профил ще бъде премахнат без възможност за възстановяване."
|
||||||
|
|
||||||
default_role_manager: Мениджър
|
default_role_manager: Мениджър
|
||||||
default_role_developer: Разработчик
|
default_role_developer: Разработчик
|
||||||
|
|||||||
@@ -1039,3 +1039,9 @@ bs:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1027,3 +1027,9 @@ ca:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1028,3 +1028,9 @@ cs:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1042,3 +1042,9 @@ da:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
+11
-7
@@ -210,7 +210,7 @@ de:
|
|||||||
mail_body_lost_password: 'Benutzen Sie den folgenden Link, um Ihr Kennwort zu ändern:'
|
mail_body_lost_password: 'Benutzen Sie den folgenden Link, um Ihr Kennwort zu ändern:'
|
||||||
mail_subject_register: "%{value} Kontoaktivierung"
|
mail_subject_register: "%{value} Kontoaktivierung"
|
||||||
mail_body_register: 'Um Ihr Konto zu aktivieren, benutzen Sie folgenden Link:'
|
mail_body_register: 'Um Ihr Konto zu aktivieren, benutzen Sie folgenden Link:'
|
||||||
mail_body_account_information_external: "Sie können sich mit Ihrem Konto %{value} an anmelden."
|
mail_body_account_information_external: "Sie können sich mit Ihrem Konto %{value} anmelden."
|
||||||
mail_body_account_information: Ihre Konto-Informationen
|
mail_body_account_information: Ihre Konto-Informationen
|
||||||
mail_subject_account_activation_request: "Antrag auf %{value} Kontoaktivierung"
|
mail_subject_account_activation_request: "Antrag auf %{value} Kontoaktivierung"
|
||||||
mail_body_account_activation_request: "Ein neuer Benutzer (%{value}) hat sich registriert. Sein Konto wartet auf Ihre Genehmigung:"
|
mail_body_account_activation_request: "Ein neuer Benutzer (%{value}) hat sich registriert. Sein Konto wartet auf Ihre Genehmigung:"
|
||||||
@@ -503,7 +503,7 @@ de:
|
|||||||
label_last_login: Letzte Anmeldung
|
label_last_login: Letzte Anmeldung
|
||||||
label_registered_on: Angemeldet am
|
label_registered_on: Angemeldet am
|
||||||
label_activity: Aktivität
|
label_activity: Aktivität
|
||||||
label_overall_activity: Aktivität aller Projekte anzeigen
|
label_overall_activity: Aktivitäten aller Projekte anzeigen
|
||||||
label_user_activity: "Aktivität von %{value}"
|
label_user_activity: "Aktivität von %{value}"
|
||||||
label_new: Neu
|
label_new: Neu
|
||||||
label_logged_as: Angemeldet als
|
label_logged_as: Angemeldet als
|
||||||
@@ -717,7 +717,7 @@ de:
|
|||||||
label_message_new: Neues Thema
|
label_message_new: Neues Thema
|
||||||
label_message_posted: Forenbeitrag hinzugefügt
|
label_message_posted: Forenbeitrag hinzugefügt
|
||||||
label_reply_plural: Antworten
|
label_reply_plural: Antworten
|
||||||
label_send_information: Sende Kontoinformationen zum Benutzer
|
label_send_information: Sende Kontoinformationen an Benutzer
|
||||||
label_year: Jahr
|
label_year: Jahr
|
||||||
label_month: Monat
|
label_month: Monat
|
||||||
label_week: Woche
|
label_week: Woche
|
||||||
@@ -992,11 +992,11 @@ de:
|
|||||||
text_scm_config: Die SCM-Kommandos können in der in config/configuration.yml konfiguriert werden. Redmine muss anschließend neu gestartet werden.
|
text_scm_config: Die SCM-Kommandos können in der in config/configuration.yml konfiguriert werden. Redmine muss anschließend neu gestartet werden.
|
||||||
text_scm_command_not_available: Scm Kommando ist nicht verfügbar. Bitte prüfen Sie die Einstellungen im Administrationspanel.
|
text_scm_command_not_available: Scm Kommando ist nicht verfügbar. Bitte prüfen Sie die Einstellungen im Administrationspanel.
|
||||||
|
|
||||||
notice_issue_successful_create: Issue %{id} created.
|
notice_issue_successful_create: Ticket %{id} erstellt.
|
||||||
label_between: between
|
label_between: zwischen
|
||||||
setting_issue_group_assignment: Allow issue assignment to groups
|
setting_issue_group_assignment: Erlaubt die Ticket-Zuweisung an Gruppen
|
||||||
label_diff: diff
|
label_diff: diff
|
||||||
text_git_repository_note: Repository is bare and local (e.g. /gitrepo, c:\gitrepo)
|
text_git_repository_note: Repository steht für sich alleine (bare) und liegt lokal (z.B. /gitrepo, c:\gitrepo)
|
||||||
|
|
||||||
description_filter: Filter
|
description_filter: Filter
|
||||||
description_search: Suchfeld
|
description_search: Suchfeld
|
||||||
@@ -1045,3 +1045,7 @@ de:
|
|||||||
permission_manage_related_issues: Zugehörige Tickets verwalten
|
permission_manage_related_issues: Zugehörige Tickets verwalten
|
||||||
field_ldap_filter: LDAP Filter
|
field_ldap_filter: LDAP Filter
|
||||||
label_search_for_watchers: Nach hinzufügbaren Beobachtern suchen
|
label_search_for_watchers: Nach hinzufügbaren Beobachtern suchen
|
||||||
|
notice_account_deleted: Ihr Benutzerkonto wurde unwiderruflich gelöscht.
|
||||||
|
setting_unsubscribe: Erlaubt Benutzern das eigene Benutzerkonto zu löschen
|
||||||
|
button_delete_my_account: Mein Benutzerkonto löschen
|
||||||
|
text_account_destroy_confirmation: Möchten Sie wirklich fortfahren?\nIhr Benutzerkonto wird für immer gelöscht und kann nicht wiederhergestellt werden.
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ el:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1027,3 +1027,9 @@ en-GB:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ en:
|
|||||||
notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
|
notice_gantt_chart_truncated: "The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})"
|
||||||
notice_issue_successful_create: "Issue %{id} created."
|
notice_issue_successful_create: "Issue %{id} created."
|
||||||
notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
|
notice_issue_update_conflict: "The issue has been updated by an other user while you were editing it."
|
||||||
|
notice_account_deleted: "Your account has been permanently deleted."
|
||||||
|
|
||||||
error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
|
error_can_t_load_default_data: "Default configuration could not be loaded: %{value}"
|
||||||
error_scm_not_found: "The entry or revision was not found in the repository."
|
error_scm_not_found: "The entry or revision was not found in the repository."
|
||||||
@@ -383,6 +384,7 @@ en:
|
|||||||
setting_issue_group_assignment: Allow issue assignment to groups
|
setting_issue_group_assignment: Allow issue assignment to groups
|
||||||
setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
|
setting_default_issue_start_date_to_creation_date: Use current date as start date for new issues
|
||||||
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
setting_commit_cross_project_ref: Allow issues of all the other projects to be referenced and fixed
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
|
||||||
permission_add_project: Create project
|
permission_add_project: Create project
|
||||||
permission_add_subprojects: Create subprojects
|
permission_add_subprojects: Create subprojects
|
||||||
@@ -894,6 +896,7 @@ en:
|
|||||||
button_show: Show
|
button_show: Show
|
||||||
button_edit_section: Edit this section
|
button_edit_section: Edit this section
|
||||||
button_export: Export
|
button_export: Export
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
|
||||||
status_active: active
|
status_active: active
|
||||||
status_registered: registered
|
status_registered: registered
|
||||||
@@ -978,6 +981,7 @@ en:
|
|||||||
text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
|
text_issue_conflict_resolution_overwrite: "Apply my changes anyway (previous notes will be kept but some changes may be overwritten)"
|
||||||
text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
|
text_issue_conflict_resolution_add_notes: "Add my notes and discard my other changes"
|
||||||
text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
|
text_issue_conflict_resolution_cancel: "Discard all my changes and redisplay %{link}"
|
||||||
|
text_account_destroy_confirmation: "Are you sure you want to proceed?\nYour account will be permanently deleted, with no way to reactivate it."
|
||||||
|
|
||||||
default_role_manager: Manager
|
default_role_manager: Manager
|
||||||
default_role_developer: Developer
|
default_role_developer: Developer
|
||||||
|
|||||||
@@ -1062,3 +1062,9 @@ es:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1041,3 +1041,9 @@ et:
|
|||||||
error_attachment_too_big: "Seda faili ei saa üles laadida, kuna ületab maksimumsuurust (%{max_size})"
|
error_attachment_too_big: "Seda faili ei saa üles laadida, kuna ületab maksimumsuurust (%{max_size})"
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1028,3 +1028,9 @@ eu:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1027,3 +1027,9 @@ fa:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1046,3 +1046,9 @@ fi:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ fr:
|
|||||||
notice_gantt_chart_truncated: "Le diagramme a été tronqué car il excède le nombre maximal d'éléments pouvant être affichés (%{max})"
|
notice_gantt_chart_truncated: "Le diagramme a été tronqué car il excède le nombre maximal d'éléments pouvant être affichés (%{max})"
|
||||||
notice_issue_successful_create: "La demande %{id} a été créée."
|
notice_issue_successful_create: "La demande %{id} a été créée."
|
||||||
notice_issue_update_conflict: "La demande a été mise à jour par un autre utilisateur pendant que vous la modifiez."
|
notice_issue_update_conflict: "La demande a été mise à jour par un autre utilisateur pendant que vous la modifiez."
|
||||||
|
notice_account_deleted: "Votre compte a été définitivement supprimé."
|
||||||
|
|
||||||
error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage : %{value}"
|
error_can_t_load_default_data: "Une erreur s'est produite lors du chargement du paramétrage : %{value}"
|
||||||
error_scm_not_found: "L'entrée et/ou la révision demandée n'existe pas dans le dépôt."
|
error_scm_not_found: "L'entrée et/ou la révision demandée n'existe pas dans le dépôt."
|
||||||
@@ -379,6 +380,7 @@ fr:
|
|||||||
setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
|
setting_issue_group_assignment: Permettre l'assignement des demandes aux groupes
|
||||||
setting_default_issue_start_date_to_creation_date: Donner à la date de début d'une nouvelle demande la valeur de la date du jour
|
setting_default_issue_start_date_to_creation_date: Donner à la date de début d'une nouvelle demande la valeur de la date du jour
|
||||||
setting_commit_cross_project_ref: Permettre le référencement et la résolution des demandes de tous les autres projets
|
setting_commit_cross_project_ref: Permettre le référencement et la résolution des demandes de tous les autres projets
|
||||||
|
setting_unsubscribe: Permettre aux utilisateurs de se désinscrire
|
||||||
|
|
||||||
permission_add_project: Créer un projet
|
permission_add_project: Créer un projet
|
||||||
permission_add_subprojects: Créer des sous-projets
|
permission_add_subprojects: Créer des sous-projets
|
||||||
@@ -868,6 +870,7 @@ fr:
|
|||||||
button_show: Afficher
|
button_show: Afficher
|
||||||
button_edit_section: Modifier cette section
|
button_edit_section: Modifier cette section
|
||||||
button_export: Exporter
|
button_export: Exporter
|
||||||
|
button_delete_my_account: Supprimer mon compte
|
||||||
|
|
||||||
status_active: actif
|
status_active: actif
|
||||||
status_registered: enregistré
|
status_registered: enregistré
|
||||||
@@ -934,6 +937,7 @@ fr:
|
|||||||
text_issue_conflict_resolution_overwrite: "Appliquer quand même ma mise à jour (les notes précédentes seront conservées mais des changements pourront être écrasés)"
|
text_issue_conflict_resolution_overwrite: "Appliquer quand même ma mise à jour (les notes précédentes seront conservées mais des changements pourront être écrasés)"
|
||||||
text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
|
text_issue_conflict_resolution_add_notes: "Ajouter mes notes et ignorer mes autres changements"
|
||||||
text_issue_conflict_resolution_cancel: "Annuler ma mise à jour et réafficher %{link}"
|
text_issue_conflict_resolution_cancel: "Annuler ma mise à jour et réafficher %{link}"
|
||||||
|
text_account_destroy_confirmation: "Êtes-vous sûr de vouloir continuer ?\nVotre compte sera définitivement supprimé, sans aucune possibilité de le réactiver."
|
||||||
|
|
||||||
default_role_manager: "Manager "
|
default_role_manager: "Manager "
|
||||||
default_role_developer: "Développeur "
|
default_role_developer: "Développeur "
|
||||||
|
|||||||
@@ -1036,3 +1036,9 @@ gl:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1030,3 +1030,9 @@ he:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1031,3 +1031,9 @@ hr:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1044,3 +1044,9 @@
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1031,3 +1031,9 @@ id:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1026,3 +1026,9 @@ it:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1055,3 +1055,9 @@ ja:
|
|||||||
permission_manage_related_issues: 関連するチケットの管理
|
permission_manage_related_issues: 関連するチケットの管理
|
||||||
field_ldap_filter: LDAPフィルタ
|
field_ldap_filter: LDAPフィルタ
|
||||||
label_search_for_watchers: ウォッチャーを検索して追加
|
label_search_for_watchers: ウォッチャーを検索して追加
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1075,3 +1075,9 @@ ko:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1085,3 +1085,9 @@ lt:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1019,3 +1019,9 @@ lv:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ mk:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ mn:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1007,3 +1007,9 @@ nl:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1015,3 +1015,9 @@
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1042,3 +1042,9 @@ pl:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1048,3 +1048,9 @@ pt-BR:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1030,3 +1030,9 @@ pt:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1022,3 +1022,9 @@ ro:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1140,3 +1140,7 @@ ru:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: "Ваша учетная запись полностью удалена"
|
||||||
|
setting_unsubscribe: "Разрешить пользователям удалять свои учетные записи"
|
||||||
|
button_delete_my_account: "Удалить мою учетную запись"
|
||||||
|
text_account_destroy_confirmation: "Ваша учетная запись будет полностью удалена без возможности восстановления.\nВы уверены, что хотите продолжить?"
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ sk:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ sl:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1025,3 +1025,9 @@ sr-YU:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1026,3 +1026,9 @@ sr:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1066,3 +1066,9 @@ sv:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1022,3 +1022,9 @@ th:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1044,3 +1044,9 @@ tr:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1022,3 +1022,7 @@ uk:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: "Ваш обліковій запис повністю видалений"
|
||||||
|
setting_unsubscribe: "Дозволити користувачам видаляти свої облікові записи"
|
||||||
|
button_delete_my_account: "Видалити мій обліковий запис"
|
||||||
|
text_account_destroy_confirmation: "Ваш обліковий запис буде повністю видалений без можливості відновлення.\nВи певні, что бажаете продовжити?"
|
||||||
|
|||||||
@@ -1076,3 +1076,9 @@ vi:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1105,3 +1105,9 @@
|
|||||||
description_date_from: 輸入起始日期
|
description_date_from: 輸入起始日期
|
||||||
description_date_to: 輸入結束日期
|
description_date_to: 輸入結束日期
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -1027,3 +1027,9 @@ zh:
|
|||||||
permission_manage_related_issues: Manage related issues
|
permission_manage_related_issues: Manage related issues
|
||||||
field_ldap_filter: LDAP filter
|
field_ldap_filter: LDAP filter
|
||||||
label_search_for_watchers: Search for watchers to add
|
label_search_for_watchers: Search for watchers to add
|
||||||
|
notice_account_deleted: Your account has been permanently deleted.
|
||||||
|
setting_unsubscribe: Allow users to unsubscribe
|
||||||
|
button_delete_my_account: Delete my account
|
||||||
|
text_account_destroy_confirmation: |-
|
||||||
|
Are you sure you want to proceed?
|
||||||
|
Your account will be permanently deleted, with no way to reactivate it.
|
||||||
|
|||||||
@@ -78,6 +78,8 @@ ActionController::Routing::Routes.draw do |map|
|
|||||||
|
|
||||||
map.connect 'my/account', :controller => 'my', :action => 'account',
|
map.connect 'my/account', :controller => 'my', :action => 'account',
|
||||||
:conditions => {:method => [:get, :post]}
|
:conditions => {:method => [:get, :post]}
|
||||||
|
map.connect 'my/account/destroy', :controller => 'my', :action => 'destroy',
|
||||||
|
:conditions => {:method => [:get, :post]}
|
||||||
map.connect 'my/page', :controller => 'my', :action => 'page',
|
map.connect 'my/page', :controller => 'my', :action => 'page',
|
||||||
:conditions => {:method => :get}
|
:conditions => {:method => :get}
|
||||||
# Redirects to my/page
|
# Redirects to my/page
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ self_registration:
|
|||||||
default: '2'
|
default: '2'
|
||||||
lost_password:
|
lost_password:
|
||||||
default: 1
|
default: 1
|
||||||
|
unsubscribe:
|
||||||
|
default: 1
|
||||||
password_min_length:
|
password_min_length:
|
||||||
format: int
|
format: int
|
||||||
default: 4
|
default: 4
|
||||||
|
|||||||
@@ -4,6 +4,17 @@ Redmine - project management software
|
|||||||
Copyright (C) 2006-2012 Jean-Philippe Lang
|
Copyright (C) 2006-2012 Jean-Philippe Lang
|
||||||
http://www.redmine.org/
|
http://www.redmine.org/
|
||||||
|
|
||||||
|
== 2012-04-20 v1.4.1
|
||||||
|
|
||||||
|
* Defect #8574: Time report: date range fields not enabled when using the calendar popup
|
||||||
|
* Defect #10642: Nested textile ol/ul lists generate invalid HTML
|
||||||
|
* Defect #10668: RSS key is generated twice when user is not reloaded
|
||||||
|
* Defect #10669: Token.destroy_expired should not delete API tokens
|
||||||
|
* Defect #10675: "Submit and continue" is broken
|
||||||
|
* Defect #10711: User cannot change account details with "Login has already been taken" error
|
||||||
|
* Feature #10664: Unsubscribe Own User Account
|
||||||
|
* Patch #10693: German Translation Update
|
||||||
|
|
||||||
== 2012-04-14 v1.4.0
|
== 2012-04-14 v1.4.0
|
||||||
|
|
||||||
* Defect #2719: Increase username length limit from 30 to 60
|
* Defect #2719: Increase username length limit from 30 to 60
|
||||||
|
|||||||
+1
-1
@@ -585,7 +585,7 @@ class RedCloth3 < String
|
|||||||
last_line = line_id
|
last_line = line_id
|
||||||
end
|
end
|
||||||
if line_id - last_line > 1 or line_id == lines.length - 1
|
if line_id - last_line > 1 or line_id == lines.length - 1
|
||||||
depth.delete_if do |v|
|
while v = depth.pop
|
||||||
lines[last_line] << "</li>\n\t</#{ lT( v ) }l>"
|
lines[last_line] << "</li>\n\t</#{ lT( v ) }l>"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module Redmine
|
|||||||
module VERSION #:nodoc:
|
module VERSION #:nodoc:
|
||||||
MAJOR = 1
|
MAJOR = 1
|
||||||
MINOR = 4
|
MINOR = 4
|
||||||
TINY = 0
|
TINY = 1
|
||||||
|
|
||||||
# Branch values:
|
# Branch values:
|
||||||
# * official release: nil
|
# * official release: nil
|
||||||
|
|||||||
@@ -521,13 +521,16 @@ function hideOnLoad() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function addFormObserversForDoubleSubmit() {
|
function addFormObserversForDoubleSubmit() {
|
||||||
$$('form[method=post]').each(function(el) {
|
$$('form[method=post]').each(function(form) {
|
||||||
Event.observe(el, 'submit', function(e) {
|
if (!form.hasClassName('multiple-submit')) {
|
||||||
var form = Event.element(e);
|
form.on('submit', function(form_submission) {
|
||||||
form.select('input[type=submit]').each(function(btn) {
|
if (form.getStorage().get('submitted')) {
|
||||||
btn.disable();
|
form_submission.stop();
|
||||||
|
} else {
|
||||||
|
form.getStorage().set('submitted', true);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ div#issue-changesets div.changeset { padding: 4px;}
|
|||||||
div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; }
|
div#issue-changesets div.changeset { border-bottom: 1px solid #ddd; }
|
||||||
div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
|
div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
|
||||||
|
|
||||||
.journal ul.details img {margin:0 0 -3px 4px; vertical-middle:base;}
|
.journal ul.details img {margin:0 0 -3px 4px;}
|
||||||
|
|
||||||
div#activity dl, #search-results { margin-left: 2em; }
|
div#activity dl, #search-results { margin-left: 2em; }
|
||||||
div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
|
div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
|
||||||
|
|||||||
@@ -84,6 +84,45 @@ class MyControllerTest < ActionController::TestCase
|
|||||||
assert user.groups.empty?
|
assert user.groups.empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_my_account_should_show_destroy_link
|
||||||
|
get :account
|
||||||
|
assert_select 'a[href=/my/account/destroy]'
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_get_destroy_should_display_the_destroy_confirmation
|
||||||
|
get :destroy
|
||||||
|
assert_response :success
|
||||||
|
assert_template 'destroy'
|
||||||
|
assert_select 'form[action=/my/account/destroy]' do
|
||||||
|
assert_select 'input[name=confirm]'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_post_destroy_without_confirmation_should_not_destroy_account
|
||||||
|
assert_no_difference 'User.count' do
|
||||||
|
post :destroy
|
||||||
|
end
|
||||||
|
assert_response :success
|
||||||
|
assert_template 'destroy'
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_post_destroy_without_confirmation_should_destroy_account
|
||||||
|
assert_difference 'User.count', -1 do
|
||||||
|
post :destroy, :confirm => '1'
|
||||||
|
end
|
||||||
|
assert_redirected_to '/'
|
||||||
|
assert_match /deleted/i, flash[:notice]
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_post_destroy_with_unsubscribe_not_allowed_should_not_destroy_account
|
||||||
|
User.any_instance.stubs(:own_account_deletable?).returns(false)
|
||||||
|
|
||||||
|
assert_no_difference 'User.count' do
|
||||||
|
post :destroy, :confirm => '1'
|
||||||
|
end
|
||||||
|
assert_redirected_to '/my/account'
|
||||||
|
end
|
||||||
|
|
||||||
def test_change_password
|
def test_change_password
|
||||||
get :password
|
get :password
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
|||||||
@@ -25,6 +25,12 @@ class RoutingMyTest < ActionController::IntegrationTest
|
|||||||
{ :controller => 'my', :action => 'account' }
|
{ :controller => 'my', :action => 'account' }
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
["get", "post"].each do |method|
|
||||||
|
assert_routing(
|
||||||
|
{ :method => method, :path => "/my/account/destroy" },
|
||||||
|
{ :controller => 'my', :action => 'destroy' }
|
||||||
|
)
|
||||||
|
end
|
||||||
assert_routing(
|
assert_routing(
|
||||||
{ :method => 'get', :path => "/my/page" },
|
{ :method => 'get', :path => "/my/page" },
|
||||||
{ :controller => 'my', :action => 'page' }
|
{ :controller => 'my', :action => 'page' }
|
||||||
|
|||||||
@@ -110,6 +110,36 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_nested_lists
|
||||||
|
raw = <<-RAW
|
||||||
|
# Item 1
|
||||||
|
# Item 2
|
||||||
|
** Item 2a
|
||||||
|
** Item 2b
|
||||||
|
# Item 3
|
||||||
|
** Item 3a
|
||||||
|
RAW
|
||||||
|
|
||||||
|
expected = <<-EXPECTED
|
||||||
|
<ol>
|
||||||
|
<li>Item 1</li>
|
||||||
|
<li>Item 2
|
||||||
|
<ul>
|
||||||
|
<li>Item 2a</li>
|
||||||
|
<li>Item 2b</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li>Item 3
|
||||||
|
<ul>
|
||||||
|
<li>Item 3a</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
EXPECTED
|
||||||
|
|
||||||
|
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
|
||||||
|
end
|
||||||
|
|
||||||
def test_escaping
|
def test_escaping
|
||||||
assert_html_output(
|
assert_html_output(
|
||||||
'this is a <script>' => 'this is a <script>'
|
'this is a <script>' => 'this is a <script>'
|
||||||
|
|||||||
@@ -35,4 +35,27 @@ class TokenTest < ActiveSupport::TestCase
|
|||||||
assert !Token.exists?(t1.id)
|
assert !Token.exists?(t1.id)
|
||||||
assert Token.exists?(t2.id)
|
assert Token.exists?(t2.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_destroy_expired_should_not_destroy_feeds_and_api_tokens
|
||||||
|
Token.delete_all
|
||||||
|
|
||||||
|
Token.create!(:user_id => 1, :action => 'api', :created_on => 7.days.ago)
|
||||||
|
Token.create!(:user_id => 1, :action => 'feeds', :created_on => 7.days.ago)
|
||||||
|
|
||||||
|
assert_no_difference 'Token.count' do
|
||||||
|
assert_equal 0, Token.destroy_expired
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_destroy_expired_should_destroy_expired_tokens
|
||||||
|
Token.delete_all
|
||||||
|
|
||||||
|
Token.create!(:user_id => 1, :action => 'autologin', :created_on => 7.days.ago)
|
||||||
|
Token.create!(:user_id => 2, :action => 'autologin', :created_on => 3.days.ago)
|
||||||
|
Token.create!(:user_id => 3, :action => 'autologin', :created_on => 1.hour.ago)
|
||||||
|
|
||||||
|
assert_difference 'Token.count', -2 do
|
||||||
|
assert_equal 2, Token.destroy_expired
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -134,6 +134,20 @@ class UserTest < ActiveSupport::TestCase
|
|||||||
assert_equal "john", @admin.login
|
assert_equal "john", @admin.login
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_update_should_not_fail_for_legacy_user_with_different_case_logins
|
||||||
|
u1 = User.new(:firstname => "new", :lastname => "user", :mail => "newuser1@somenet.foo")
|
||||||
|
u1.login = 'newuser1'
|
||||||
|
assert u1.save
|
||||||
|
|
||||||
|
u2 = User.new(:firstname => "new", :lastname => "user", :mail => "newuser2@somenet.foo")
|
||||||
|
u2.login = 'newuser1'
|
||||||
|
assert u2.save(false)
|
||||||
|
|
||||||
|
user = User.find(u2.id)
|
||||||
|
user.firstname = "firstname"
|
||||||
|
assert user.save, "Save failed"
|
||||||
|
end
|
||||||
|
|
||||||
def test_destroy_should_delete_members_and_roles
|
def test_destroy_should_delete_members_and_roles
|
||||||
members = Member.find_all_by_user_id(2)
|
members = Member.find_all_by_user_id(2)
|
||||||
ms = members.size
|
ms = members.size
|
||||||
@@ -585,6 +599,22 @@ class UserTest < ActiveSupport::TestCase
|
|||||||
assert_equal key, @jsmith.rss_key
|
assert_equal key, @jsmith.rss_key
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_rss_key_should_not_be_generated_twice
|
||||||
|
assert_difference 'Token.count', 1 do
|
||||||
|
key1 = @jsmith.rss_key
|
||||||
|
key2 = @jsmith.rss_key
|
||||||
|
assert_equal key1, key2
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_api_key_should_not_be_generated_twice
|
||||||
|
assert_difference 'Token.count', 1 do
|
||||||
|
key1 = @jsmith.api_key
|
||||||
|
key2 = @jsmith.api_key
|
||||||
|
assert_equal key1, key2
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
context "User#api_key" do
|
context "User#api_key" do
|
||||||
should "generate a new one if the user doesn't have one" do
|
should "generate a new one if the user doesn't have one" do
|
||||||
user = User.generate_with_protected!(:api_token => nil)
|
user = User.generate_with_protected!(:api_token => nil)
|
||||||
@@ -770,7 +800,34 @@ class UserTest < ActiveSupport::TestCase
|
|||||||
user.auth_source = denied_auth_source
|
user.auth_source = denied_auth_source
|
||||||
assert !user.change_password_allowed?, "User allowed to change password, though auth source does not"
|
assert !user.change_password_allowed?, "User allowed to change password, though auth source does not"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_own_account_deletable_should_be_true_with_unsubscrive_enabled
|
||||||
|
with_settings :unsubscribe => '1' do
|
||||||
|
assert_equal true, User.find(2).own_account_deletable?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_own_account_deletable_should_be_false_with_unsubscrive_disabled
|
||||||
|
with_settings :unsubscribe => '0' do
|
||||||
|
assert_equal false, User.find(2).own_account_deletable?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_own_account_deletable_should_be_false_for_a_single_admin
|
||||||
|
User.delete_all(["admin = ? AND id <> ?", true, 1])
|
||||||
|
|
||||||
|
with_settings :unsubscribe => '1' do
|
||||||
|
assert_equal false, User.find(1).own_account_deletable?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_own_account_deletable_should_be_true_for_an_admin_if_other_admin_exists
|
||||||
|
User.generate_with_protected(:admin => true)
|
||||||
|
|
||||||
|
with_settings :unsubscribe => '1' do
|
||||||
|
assert_equal true, User.find(1).own_account_deletable?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "#allowed_to?" do
|
context "#allowed_to?" do
|
||||||
|
|||||||
Reference in New Issue
Block a user