Skip to content
Snippets Groups Projects
Commit 456baba0 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Keywords: disable delete grant when a keyword is essential

parent d79bd119
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
<documentation>%aditoprj%/entity/KeywordEntry_entity/documentation.adoc</documentation> <documentation>%aditoprj%/entity/KeywordEntry_entity/documentation.adoc</documentation>
<title>Keyword</title> <title>Keyword</title>
<siblings /> <siblings />
<grantDelete v="false" />
<grantDeleteProcess>%aditoprj%/entity/KeywordEntry_entity/grantDeleteProcess.js</grantDeleteProcess>
<contentTitleProcess>%aditoprj%/entity/KeywordEntry_entity/contentTitleProcess.js</contentTitleProcess> <contentTitleProcess>%aditoprj%/entity/KeywordEntry_entity/contentTitleProcess.js</contentTitleProcess>
<onValidation>%aditoprj%/entity/KeywordEntry_entity/onValidation.js</onValidation> <onValidation>%aditoprj%/entity/KeywordEntry_entity/onValidation.js</onValidation>
<iconId>VAADIN:KEY</iconId> <iconId>VAADIN:KEY</iconId>
......
import("system.result");
import("system.vars");
var isEssential = vars.get("$field.ISESSENTIAL");
var granted = true;
if (isEssential == "1")
granted = false;
result.string(granted)
\ No newline at end of file
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