Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d9ae2e6f
Commit
d9ae2e6f
authored
Sep 30, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec/features/groups/members/owner_manages_access_requests_spec.rb
parent
5e52fb51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/controllers/concerns/membership_actions.rb
app/controllers/concerns/membership_actions.rb
+4
-4
No files found.
app/controllers/concerns/membership_actions.rb
View file @
d9ae2e6f
...
...
@@ -9,9 +9,9 @@ module MembershipActions
end
def
approve_access_request
Members
::
ApproveAccessRequestService
.
new
(
membershipable
,
current_user
,
params
).
execute
member
=
Members
::
ApproveAccessRequestService
.
new
(
membershipable
,
current_user
,
params
).
execute
log_audit_event
(
@
member
,
action: :create
)
log_audit_event
(
member
,
action: :create
)
redirect_to
polymorphic_url
([
membershipable
,
:members
])
end
...
...
@@ -28,9 +28,9 @@ module MembershipActions
else
"You left the
\"
#{
@member
.
source
.
human_name
}
\"
#{
source_type
}
."
end
log_audit_event
(
@member
,
action: :destroy
)
unless
@member
.
request?
redirect_path
=
@member
.
request?
?
@member
.
source
:
[
:dashboard
,
@member
.
real_source_type
.
tableize
]
redirect_to
redirect_path
,
notice:
notice
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment