Skip to content
Snippets Groups Projects
Commit e2fe1e02 authored by Eduard Moraru's avatar Eduard Moraru
Browse files

Revert "XWIKI-12171: Add a script right to manage script macro execution permissions"

This reverts commit eebe3051.
parent 4efe85cc
No related branches found
No related tags found
No related merge requests found
...@@ -127,14 +127,14 @@ public class Right implements RightDescription, Serializable, Comparable<Right> ...@@ -127,14 +127,14 @@ public class Right implements RightDescription, Serializable, Comparable<Right>
static { static {
LOGIN = new Right("login", ALLOW, ALLOW, true, null, WIKI_ONLY , true); LOGIN = new Right("login", ALLOW, ALLOW, true, null, WIKI_ONLY , true);
VIEW = new Right("view", ALLOW, DENY, true, null, WIKI_SPACE_DOCUMENT , true); VIEW = new Right("view", ALLOW, DENY, true, null, WIKI_SPACE_DOCUMENT , true);
SCRIPT = new Right("script", ALLOW, DENY, true, null, WIKI_SPACE_DOCUMENT , true);
EDIT = new Right("edit", ALLOW, DENY, true, EDIT = new Right("edit", ALLOW, DENY, true,
new RightSet(VIEW), WIKI_SPACE_DOCUMENT , false); new RightSet(VIEW, SCRIPT), WIKI_SPACE_DOCUMENT , false);
DELETE = new Right("delete", DENY, DENY, true, null, WIKI_SPACE_DOCUMENT , false); DELETE = new Right("delete", DENY, DENY, true, null, WIKI_SPACE_DOCUMENT , false);
CREATOR = new Right("creator", DENY, ALLOW, false, CREATOR = new Right("creator", DENY, ALLOW, false,
new RightSet(DELETE), EnumSet.of(EntityType.DOCUMENT), false); new RightSet(DELETE), EnumSet.of(EntityType.DOCUMENT), false);
REGISTER = new Right("register", ALLOW, ALLOW, true, null, WIKI_ONLY , false); REGISTER = new Right("register", ALLOW, ALLOW, true, null, WIKI_ONLY , false);
COMMENT = new Right("comment", ALLOW, DENY, true, null, WIKI_SPACE_DOCUMENT , false); COMMENT = new Right("comment", ALLOW, DENY, true, null, WIKI_SPACE_DOCUMENT , false);
SCRIPT = new Right("script", DENY, DENY, true, null, WIKI_SPACE_DOCUMENT , true);
ADMIN = new Right("admin", DENY, ALLOW, false, ADMIN = new Right("admin", DENY, ALLOW, false,
new RightSet(LOGIN, VIEW, SCRIPT, EDIT, DELETE, REGISTER, COMMENT), WIKI_SPACE , true); new RightSet(LOGIN, VIEW, SCRIPT, EDIT, DELETE, REGISTER, COMMENT), WIKI_SPACE , true);
......
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