Skip to content
Snippets Groups Projects
Verified Commit d6087a3e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DOC: add docstring to AccessControl Job

parent 7a9b80b8
No related branches found
No related tags found
2 merge requests!96DOC: Added CITATION.cff to the list of files in the release guide where the...,!84fixing server issue #196
Pipeline #35185 passed
......@@ -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 is the possibility
Without backup, this means possible data loss. Also there was the possibility
to spam the database by creating unwanted entities.
### Documentation ###
......
/*
* ** 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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment