Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Merge requests
!364
Hotfix/ui view
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Hotfix/ui view
hotfix/ui-view
into
release-1.5
Overview
0
Commits
2
Pipelines
0
Changes
9
Merged
Hotfix/ui view
Martin Weise
requested to merge
hotfix/ui-view
into
release-1.5
7 months ago
Overview
0
Commits
2
Pipelines
0
Changes
9
0
0
Merge request reports
Compare
release-1.5
release-1.5 (base)
and
latest version
latest version
b3f4449c
2 commits,
7 months ago
9 files
+
103
−
109
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
dbrepo-data-service/rest-service/src/main/java/at/tuwien/endpoints/ViewEndpoint.java
+
4
−
0
View file @ b3f4449c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -270,6 +270,10 @@ public class ViewEndpoint extends AbstractEndpoint {
// TODO improve with a single operation that checks if user xyz has access to view abc
final
PrivilegedViewDto
view
=
metadataServiceGateway
.
getViewById
(
databaseId
,
viewId
);
if
(!
view
.
getIsPublic
())
{
if
(
principal
==
null
)
{
log
.
error
(
"Failed to get data from view: unauthorized"
);
throw
new
NotAllowedException
(
"Failed to get data from view: unauthorized"
);
}
metadataServiceGateway
.
getAccess
(
databaseId
,
UserUtil
.
getId
(
principal
));
}
try
{
Loading