Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
restrict_ip
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
restrict_ip
Merge requests
!27
Resolve
#3495439
"Round2"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3495439
"Round2"
issue/restrict_ip-3495439:3495439-round2
into
5.0.x
Overview
0
Commits
5
Pipelines
4
Changes
7
Merged
Stephen Mustgrave
requested to merge
issue/restrict_ip-3495439:3495439-round2
into
5.0.x
4 months ago
Overview
0
Commits
5
Pipelines
4
Changes
7
Expand
Closes
#3495439
0
0
Merge request reports
Compare
5.0.x
version 3
6f43bedf
4 months ago
version 2
cfa450aa
4 months ago
version 1
34b3acd6
4 months ago
5.0.x (base)
and
latest version
latest version
cc8022fc
5 commits,
4 months ago
version 3
6f43bedf
4 commits,
4 months ago
version 2
cfa450aa
3 commits,
4 months ago
version 1
34b3acd6
1 commit,
4 months ago
7 files
+
46
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
src/Controller/PageController.php
+
1
−
1
Options
@@ -27,7 +27,7 @@ class PageController extends ControllerBase implements PageControllerInterface {
/**
* {@inheritdoc}
*/
public
function
accessDeniedPage
():
RedirectResponse
{
public
function
accessDeniedPage
():
RedirectResponse
|
array
{
if
(
!
isset
(
$_SESSION
[
'restrict_ip'
])
||
!
$_SESSION
[
'restrict_ip'
])
{
return
new
RedirectResponse
(
Url
::
fromRoute
(
'<front>'
)
->
toString
());
}
Loading