diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-31 07:16:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-05-31 07:16:23 +0000 |
commit | ed9f00178c65cc4b37ad2ab56cc89b1c79c4fb8b (patch) | |
tree | 3420c99029f21a21c236c4ff8c0c532dd548401e /app/views/members | |
parent | 48d40a8c8884aefc2287f2030c439578057c9516 (diff) | |
download | redmine-ed9f00178c65cc4b37ad2ab56cc89b1c79c4fb8b.tar.gz redmine-ed9f00178c65cc4b37ad2ab56cc89b1c79c4fb8b.zip |
Ability to limit member management to certain roles (#19707).
git-svn-id: http://svn.redmine.org/redmine/trunk@14293 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/members')
-rw-r--r-- | app/views/members/_new_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/members/_new_form.html.erb b/app/views/members/_new_form.html.erb index 9140da7c4..3fe9187d1 100644 --- a/app/views/members/_new_form.html.erb +++ b/app/views/members/_new_form.html.erb @@ -9,7 +9,7 @@ <fieldset class="box"> <legend><%= l(:label_role_plural) %> <%= toggle_checkboxes_link('.roles-selection input') %></legend> <div class="roles-selection"> - <% Role.givable.all.each do |role| %> + <% User.current.managed_roles(@project).each do |role| %> <label><%= check_box_tag 'membership[role_ids][]', role.id, false, :id => nil %> <%= role %></label> <% end %> </div> |