Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bodysch-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
org
BodySCH
bodysch-backend
Merge requests
!11
Revert "Merge branch 'feature/12-dev-auto-deploy' into 'master'"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Revert "Merge branch 'feature/12-dev-auto-deploy' into 'master'"
revert-a0c30d4f
into
master
Overview
0
Commits
1
Pipelines
0
Changes
42
Merged
Rafael László
requested to merge
revert-a0c30d4f
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
42
Expand
This reverts merge request
!10 (merged)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
eea4be9c
1 commit,
4 years ago
42 files
+
85
−
659
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
42
Search (e.g. *.vue) (Ctrl+P)
src/middlewares/auth/authenticated.ts
+
11
−
11
Options
import
{
Request
,
Response
,
NextFunction
}
from
"
express
"
;
import
{
Request
,
Response
,
NextFunction
}
from
"
express
"
;
const
authenticated
=
()
=>
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
)
=>
{
const
authenticated
=
()
=>
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
)
=>
{
if
(
req
.
session
!
.
user
)
if
(
req
.
session
!
.
user
)
next
();
next
();
else
{
else
{
res
.
status
(
403
);
res
.
status
(
403
);
res
.
json
({
message
:
"
You have to login to see this page
"
});
res
.
json
({
message
:
"
You have to login to see this page
"
});
}
}
}
}
export
default
authenticated
;
export
default
authenticated
;
\ No newline at end of file
Loading