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
a7087cb9
Commit
a7087cb9
authored
Dec 07, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HTTP_REFERER not properly set in Safari
parent
6b028ed8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
app/controllers/groups/hooks_controller.rb
app/controllers/groups/hooks_controller.rb
+1
-1
app/controllers/groups/ldap_group_links_controller.rb
app/controllers/groups/ldap_group_links_controller.rb
+6
-3
app/controllers/projects/approvers_controller.rb
app/controllers/projects/approvers_controller.rb
+1
-1
No files found.
app/controllers/groups/hooks_controller.rb
View file @
a7087cb9
...
...
@@ -38,7 +38,7 @@ class Groups::HooksController < Groups::ApplicationController
flash
[
:alert
]
=
'Hook execution failed. Ensure the group has a project with commits.'
end
redirect_
to
:back
redirect_
back_or_default
(
default:
{
action:
'index'
})
end
def
destroy
...
...
app/controllers/groups/ldap_group_links_controller.rb
View file @
a7087cb9
...
...
@@ -14,16 +14,19 @@ class Groups::LdapGroupLinksController < Groups::ApplicationController
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'
redirect_
back_or_default
(
default:
{
action:
'index'
},
options:
{
notice:
'New LDAP link saved'
})
end
else
redirect_to
:back
,
alert:
"Could not create new LDAP link:
#{
ldap_group_link
.
errors
.
full_messages
*
', '
}
"
redirect_back_or_default
(
default:
{
action:
'index'
},
options:
{
alert:
"Could not create new LDAP link:
#{
ldap_group_link
.
errors
.
full_messages
*
', '
}
"
}
)
end
end
def
destroy
@group
.
ldap_group_links
.
where
(
id:
params
[
:id
]).
destroy_all
redirect_
to
:back
,
notice:
'LDAP link removed'
redirect_
back_or_default
(
default:
{
action:
'index'
},
options:
{
notice:
'LDAP link removed'
})
end
private
...
...
app/controllers/projects/approvers_controller.rb
View file @
a7087cb9
...
...
@@ -9,6 +9,6 @@ class Projects::ApproversController < ApplicationController
project
.
approvers
.
find
(
params
[
:id
]).
destroy
end
redirect_
to
:back
redirect_
back_or_default
(
default:
{
action:
'index'
})
end
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