Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-server
Commits
9b088c44
Commit
9b088c44
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
73494876
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!111
Release 0.12.1
,
!109
F select acl
Pipeline
#44389
failed
1 year ago
Stage: info
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
caosdb-webui
+1
-1
1 addition, 1 deletion
caosdb-webui
src/main/java/org/caosdb/server/database/backend/transaction/RetrieveFullEntityTransaction.java
+6
-3
6 additions, 3 deletions
...se/backend/transaction/RetrieveFullEntityTransaction.java
with
7 additions
and
4 deletions
caosdb-webui
@
e6fef9f3
Subproject commit
d5f9090eca25a92fc44dbeeba305768e8d9f4bcb
Subproject commit
e6fef9f35da49dfea5b11f99b872d15c35fd043d
This diff is collapsed.
Click to expand it.
src/main/java/org/caosdb/server/database/backend/transaction/RetrieveFullEntityTransaction.java
+
6
−
3
View file @
9b088c44
...
...
@@ -236,15 +236,18 @@ public class RetrieveFullEntityTransaction extends BackendTransaction {
if
(
this
.
subject
!=
null
)
{
System
.
out
.
println
(((
Principal
)
this
.
subject
.
getPrincipal
()).
getUsername
());
// final EntityInterface e =
// execute(new RetrieveSparseEntity(q.getKey(), null), query.getAccess()).getEntity();
// check whether the referenced entity may be retrieved
// recursion! (Only for the matching selections)
retrieveFullEntity
(
ref
,
getSubSelects
(
selections
,
propertyName
));
final
EntityACL
entityACL
=
ref
.
getEntityACL
();
if
(!
entityACL
.
isPermitted
(
this
.
subject
,
EntityPermission
.
RETRIEVE_ENTITY
))
{
return
;
}
value
.
setEntity
(
ref
,
true
);
}
// recursion! (Only for the matching selections)
retrieveFullEntity
(
ref
,
getSubSelects
(
selections
,
propertyName
));
value
.
setEntity
(
ref
,
true
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment