diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-08-11 10:00:31 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-08-11 11:08:07 -0500 |
commit | 32b579e8426094af4b7731d3e91597a377a7ba7e (patch) | |
tree | b86ebd25e77e7acfe74903abcafa1fd3e0b3fd27 /app/helpers/members_helper.rb | |
parent | 4c29c25497c9a20a5d1f57cd287123cd41edad96 (diff) | |
download | gitlab-ce-32b579e8426094af4b7731d3e91597a377a7ba7e.tar.gz |
Show member roles to all users on members page20614-show-member-roles-to-all-users
Diffstat (limited to 'app/helpers/members_helper.rb')
-rw-r--r-- | app/helpers/members_helper.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb index ec106418f2d..877c77050be 100644 --- a/app/helpers/members_helper.rb +++ b/app/helpers/members_helper.rb @@ -6,12 +6,6 @@ module MembersHelper "#{action}_#{member.type.underscore}".to_sym end - def default_show_roles(member) - can?(current_user, action_member_permission(:update, member), member) || - can?(current_user, action_member_permission(:destroy, member), member) || - can?(current_user, action_member_permission(:admin, member), member.source) - end - def remove_member_message(member, user: nil) user = current_user if defined?(current_user) |