Skip to content
Snippets Groups Projects
Commit f54ddbf1 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre
Browse files

Fix MembersHelper

parent f438a2aa
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -11,17 +11,17 @@ module MembersHelper
 
text = 'Are you sure you want to '
action =
if member.request?
if member.user == user
'withdraw your access request for'
else
"deny #{member.user.name}'s request to join"
end
elsif member.invite?
"revoke the invitation for #{member.invite_email} to join"
if member.request?
if member.user == user
'withdraw your access request for'
else
"remove #{member.user.name} from"
"deny #{member.user.name}'s request to join"
end
elsif member.invite?
"revoke the invitation for #{member.invite_email} to join"
else
"remove #{member.user.name} from"
end
 
text << action << " the #{member.source.human_name} #{member.real_source_type.humanize(capitalize: false)}?"
end
Loading
Loading
@@ -39,8 +39,8 @@ module MembersHelper
 
def filter_group_project_member_path(options = {})
exist_opts = {
search: params[:search],
sort: params[:sort]
search: params[:search],
sort: params[:sort]
}
 
options = exist_opts.merge(options)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment