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
bac04b22
Commit
bac04b22
authored
Sep 01, 2014
by
Jan-Willem van der Meer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin group edits now redirect to group#show on success
parent
89f25ffa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
app/controllers/groups/ldap_group_links_controller.rb
app/controllers/groups/ldap_group_links_controller.rb
+5
-1
No files found.
app/controllers/groups/ldap_group_links_controller.rb
View file @
bac04b22
...
...
@@ -10,7 +10,11 @@ class Groups::LdapGroupLinksController < ApplicationController
def
create
ldap_group_link
=
@group
.
ldap_group_links
.
build
(
ldap_group_link_params
)
if
ldap_group_link
.
save
redirect_to
:back
,
notice:
'New LDAP link saved'
if
request
.
referer
&&
request
.
referer
.
include?
(
'admin'
)
redirect_to
[
:admin
,
@group
],
notice:
'New LDAP link saved'
else
redirect_to
:back
,
notice:
'New LDAP link saved'
end
else
redirect_to
:back
,
alert:
'Could not create new LDAP link'
end
...
...
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