aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/User.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-01 11:00:17 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-01 11:00:17 +1300
commit7575edbee87f9fbe4770c988b469f5915d85bb51 (patch)
treedd71bd4288976fc8f2bdf146d27c5d4964a15217 /src/org/traccar/model/User.java
parent2ba060bc29ee529c5492b098b21927e15d815cb1 (diff)
downloadtrackermap-server-7575edbee87f9fbe4770c988b469f5915d85bb51.tar.gz
trackermap-server-7575edbee87f9fbe4770c988b469f5915d85bb51.tar.bz2
trackermap-server-7575edbee87f9fbe4770c988b469f5915d85bb51.zip
Move role definitions to user model
Diffstat (limited to 'src/org/traccar/model/User.java')
-rw-r--r--src/org/traccar/model/User.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java
index 8ac9e9d32..1c404c38a 100644
--- a/src/org/traccar/model/User.java
+++ b/src/org/traccar/model/User.java
@@ -20,6 +20,9 @@ import org.traccar.web.JsonIgnore;
public class User implements Factory {
+ public static final String ROLE_USER = "user";
+ public static final String ROLE_ADMIN = "admin";
+
@Override
public User create() {
return new User();