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
d6087a3e
Verified
Commit
d6087a3e
authored
2 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: add docstring to AccessControl Job
parent
7a9b80b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!96
DOC: Added CITATION.cff to the list of files in the release guide where the...
,
!84
fixing server issue #196
Pipeline
#35185
passed
2 years ago
Stage: info
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
src/main/java/org/caosdb/server/jobs/core/AccessControl.java
+10
-3
10 additions, 3 deletions
src/main/java/org/caosdb/server/jobs/core/AccessControl.java
with
11 additions
and
4 deletions
CHANGELOG.md
+
1
−
1
View file @
d6087a3e
...
...
@@ -45,7 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
execute insert, update or delete transactions on entities. However, the
unprivileged users would also need the correct entity permissions to do that.
Without backup, this means possible data loss. Also there
i
s the possibility
Without backup, this means possible data loss. Also there
wa
s the possibility
to spam the database by creating unwanted entities.
### Documentation ###
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/caosdb/server/jobs/core/AccessControl.java
+
10
−
3
View file @
d6087a3e
/*
* ** header v3.0
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2018 Research Group Biomedical Physics,
* Max-Planck-Institute for Dynamics and Self-Organization Göttingen
* Copyright (C) 2023 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2023 IndiScale <info@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
...
...
@@ -17,8 +18,6 @@
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* ** end header
*/
package
org.caosdb.server.jobs.core
;
...
...
@@ -37,6 +36,14 @@ import org.caosdb.server.transaction.Retrieve;
import
org.caosdb.server.utils.EntityStatus
;
import
org.caosdb.server.utils.ServerMessages
;
/**
* Checks the TRANSACTION:* permissions before a transaction begins.
*
* <p>Users need TRANSACTION:INSERT:?ENTITY_ROLE? permission to insert an entity of the particular
* entity role. Likewise, they need the TRANSACTION:UPDATE or TRANSACTION:DELETE permissions.
*
* @author Timm Fitschen <f.fitschen@indiscale.com>
*/
@JobAnnotation
(
stage
=
TransactionStage
.
INIT
)
public
class
AccessControl
extends
ContainerJob
{
...
...
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