@project.set_parent!(params[:project]['parent_id']) if User.current.admin? && params[:project].has_key?('parent_id')
# Add current user as a project member if he is not admin
unless User.current.admin?
- m = Member.new(:user => User.current, :roles => Role.builtin(false).find(:all, :order => 'position', :limit => 1))
+ r = Role.givable.find_by_id(Setting.new_project_user_role_id.to_i) || Role.givable.first
+ m = Member.new(:user => User.current, :roles => [r])
@project.members << m
end
flash[:notice] = l(:notice_successful_create)
BUILTIN_NON_MEMBER = 1
BUILTIN_ANONYMOUS = 2
+ named_scope :givable, { :conditions => "builtin = 0", :order => 'position' }
named_scope :builtin, lambda { |*args|
compare = 'not' if args.first == true
{ :conditions => "#{compare} builtin = 0" }
<p><label><%= l(:setting_sequential_project_identifiers) %></label>
<%= check_box_tag 'settings[sequential_project_identifiers]', 1, Setting.sequential_project_identifiers? %><%= hidden_field_tag 'settings[sequential_project_identifiers]', 0 %></p>
+
+<p><label><%= l(:setting_new_project_user_role_id) %></label>
+<%= select_tag('settings[new_project_user_role_id]', options_for_select([["--- #{l(:actionview_instancetag_blank_option)} ---", '']] + Role.find_all_givable.collect {|r| [r.name, r.id]}, Setting.new_project_user_role_id)) %></p>
</div>
<%= submit_tag l(:button_save) %>
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated\r
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.\r
permission_add_project: Create project\r
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project\r
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_repository_log_display_limit: Maximum number of revisions displayed on file log
setting_openid: Allow OpenID login and registration
setting_password_min_length: Minimum password length
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
permission_add_project: Create project
permission_edit_project: Edit project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_repository_log_display_limit: "Nombre maximum de revisions affichées sur l'historique d'un fichier"
setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
setting_password_min_length: Longueur minimum des mots de passe
+ setting_new_project_user_role_id: Rôle donné à un utilisateur non-administrateur qui crée un projet
permission_add_project: Créer un projet
permission_edit_project: Modifier le projet
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
setting_repositories_encodings: Repositories encodings
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
permission_add_project: Create project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
permission_add_project: Create project
label_wiki_content_updated: Wiki page updated
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
+ setting_new_project_user_role_id: Role given to a non-admin user who creates a project
default: 1
default_projects_public:
default: 1
+# Role given to a non-admin user who creates a project
+new_project_user_role_id:
+ format: int
+ default: ''
sequential_project_identifiers:
default: 0
# encodings used to convert repository files content to UTF-8