|
|
|
@ -95,6 +95,9 @@ public class User_p {
|
|
|
|
|
if(post.containsKey("change_user")){
|
|
|
|
|
//defaults for newuser are set above
|
|
|
|
|
entry=sb.userDB.getEntry((String)post.get("user"));
|
|
|
|
|
// program crashes if a submit with emty username was made on previous mask and the user clicked on the
|
|
|
|
|
// link: "If you want to manage more Users, return to the user page." (parameter "user" is empty)
|
|
|
|
|
if (entry != null) {
|
|
|
|
|
//TODO: set username read-only in html
|
|
|
|
|
prop.put("page_current_user", post.get("user"));
|
|
|
|
|
prop.put("page_username", post.get("user"));
|
|
|
|
@ -108,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));
|
|
|
|
|
}
|
|
|
|
|
}else if( post.containsKey("delete_user") && !((String)post.get("user")).equals("newuser") ){
|
|
|
|
|
sb.userDB.removeEntry((String)post.get("user"));
|
|
|
|
|
}
|
|
|
|
|