diff --git a/htroot/User_p.html b/htroot/User_p.html
index 5da676257..bf99baeb6 100644
--- a/htroot/User_p.html
+++ b/htroot/User_p.html
@@ -63,7 +63,8 @@ Current User: #[username]#
Admin
Fileshare-Upload
Fileshare-Download
- Blog
+ Blog
+ Wiki Admin
diff --git a/htroot/User_p.java b/htroot/User_p.java
index 1ed4c5217..0aa52c1f5 100644
--- a/htroot/User_p.java
+++ b/htroot/User_p.java
@@ -111,6 +111,7 @@ public class User_p {
prop.put("page_downloadRight", (entry.hasDownloadRight()?1:0));
prop.put("page_adminRight", (entry.hasAdminRight()?1:0));
prop.put("page_blogRight", (entry.hasBlogRight()?1:0));
+ prop.put("page_wikiAdminRight", (entry.hasWikiAdminRight()?1:0));
}
}else if( post.containsKey("delete_user") && !((String)post.get("user")).equals("newuser") ){
sb.userDB.removeEntry((String)post.get("user"));
@@ -138,6 +139,7 @@ public class User_p {
String downloadRight=( post.containsKey("downloadRight")&&((String)post.get("downloadRight")).equals("on") ? "true" : "false");
String adminRight=( post.containsKey("adminRight")&&((String)post.get("adminRight")).equals("on") ? "true" : "false");
String blogRight=( post.containsKey("blogRight")&&((String)post.get("blogRight")).equals("on") ? "true" : "false");
+ String wikiAdminRight=( post.containsKey("wikiAdminRight")&&((String)post.get("wikiAdminRight")).equals("on") ? "true" : "false");
HashMap mem=new HashMap();
if( post.get("current_user").equals("newuser")){ //new user
@@ -153,6 +155,7 @@ public class User_p {
mem.put(userDB.Entry.UPLOAD_RIGHT, uploadRight);
mem.put(userDB.Entry.DOWNLOAD_RIGHT, downloadRight);
mem.put(userDB.Entry.BLOG_RIGHT, blogRight);
+ mem.put(userDB.Entry.WIKIADMIN_RIGHT, wikiAdminRight);
try{
entry=sb.userDB.createEntry(username, mem);
@@ -182,6 +185,7 @@ public class User_p {
entry.setProperty(userDB.Entry.DOWNLOAD_RIGHT, downloadRight);
entry.setProperty(userDB.Entry.ADMIN_RIGHT, adminRight);
entry.setProperty(userDB.Entry.BLOG_RIGHT, blogRight);
+ entry.setProperty(userDB.Entry.WIKIADMIN_RIGHT, wikiAdminRight);
}catch (IOException e){
}
}else{
diff --git a/source/de/anomic/data/userDB.java b/source/de/anomic/data/userDB.java
index 6328a80cb..2b3e27598 100644
--- a/source/de/anomic/data/userDB.java
+++ b/source/de/anomic/data/userDB.java
@@ -318,6 +318,7 @@ public final class userDB {
public static final String ADMIN_RIGHT = "adminRight";
public static final String PROXY_RIGHT = "proxyRight";
public static final String BLOG_RIGHT = "blogRight";
+ public static final String WIKIADMIN_RIGHT = "wikiAdminRight";
public static final int PROXY_ALLOK = 0; //can Surf
public static final int PROXY_ERROR = 1; //unknown error
@@ -514,6 +515,9 @@ public final class userDB {
public boolean hasBlogRight() {
return (this.mem.containsKey(BLOG_RIGHT)?((String)this.mem.get(BLOG_RIGHT)).equals("true"):false);
}
+ public boolean hasWikiAdminRight() {
+ return (this.mem.containsKey(WIKIADMIN_RIGHT)?((String)this.mem.get(WIKIADMIN_RIGHT)).equals("true"):false);
+ }
public boolean isLoggedOut(){
return (this.mem.containsKey(LOGGED_OUT)?((String)this.mem.get(LOGGED_OUT)).equals("true"):false);
}