Commit 97c8008a authored by Peter Harrison's avatar Peter Harrison

[#56] Adding the system user by default when creating a new board.

parent e43fe346
......@@ -4,7 +4,7 @@
<groupId>nz.net.gravity</groupId>
<artifactId>gravity</artifactId>
<packaging>war</packaging>
<version>3.0.2-SNAPSHOT</version>
<version>3.0.3-SNAPSHOT</version>
<name>Gravity Workflow Automation</name>
<properties>
......
......@@ -155,6 +155,10 @@ public class SecurityToolImpl implements SecurityTool {
roles.put("administrators", "ADMIN");
}
if( roles.get("system")==null){
roles.put("system", "WRITE");
}
String username = getCurrentUser();
if( roles.get(username)==null){
roles.put(username, "ADMIN");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment