Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-perun
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-perun
Merge requests
!312
fix: use userId in ban filter
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
fix: use userId in ban filter
fix_ban
into
main
Overview
1
Commits
2
Pipelines
3
Changes
2
Merged
fix: use userId in ban filter
Johana Supíková
requested to merge
fix_ban
into
main
Jul 10, 2023
Overview
1
Commits
2
Pipelines
3
Changes
2
0
0
Merge request reports
Compare
main
version 1
e23dcb71
Jul 10, 2023
main (base)
and
latest version
latest version
a1ca6652
2 commits,
Jul 10, 2023
version 1
e23dcb71
1 commit,
Jul 10, 2023
2 files
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
lib/Auth/Process/IsBanned.php
+
4
−
3
View file @ a1ca6652
Edit in single-file editor
Open in Web IDE
Show full file
@@ -75,11 +75,12 @@ class IsBanned extends ProcessingFilter
);
}
if
(
$this
->
banExists
(
$user
))
{
Logger
::
info
(
'perun:IsBanned: user '
.
$user
.
' is banned, redirecting to configured URL'
);
$userId
=
$user
->
getId
();
if
(
$this
->
banExists
(
$userId
))
{
Logger
::
info
(
'perun:IsBanned: user '
.
$userId
.
' is banned, redirecting to configured URL'
);
HTTP
::
redirectTrustedURL
(
$this
->
redirectUrl
);
}
else
{
Logger
::
debug
(
'perun:IsBanned: user '
.
$user
.
' is not banned'
);
Logger
::
debug
(
'perun:IsBanned: user '
.
$user
Id
.
' is not banned'
);
}
}
Loading