diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-01 11:00:17 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-01 11:00:17 +1300 |
commit | 7575edbee87f9fbe4770c988b469f5915d85bb51 (patch) | |
tree | dd71bd4288976fc8f2bdf146d27c5d4964a15217 /src/org/traccar/api/AuthorizationBasic.java | |
parent | 2ba060bc29ee529c5492b098b21927e15d815cb1 (diff) | |
download | trackermap-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/api/AuthorizationBasic.java')
-rw-r--r-- | src/org/traccar/api/AuthorizationBasic.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/AuthorizationBasic.java b/src/org/traccar/api/AuthorizationBasic.java index 807320940..291d0e5d6 100644 --- a/src/org/traccar/api/AuthorizationBasic.java +++ b/src/org/traccar/api/AuthorizationBasic.java @@ -77,9 +77,9 @@ public final class AuthorizationBasic { */ //Temporary solution - userPrincipal.getRoles().add(ApplicationRole.USER); + userPrincipal.getRoles().add(User.ROLE_USER); if (user.getAdmin()) { - userPrincipal.getRoles().add(ApplicationRole.ADMIN); + userPrincipal.getRoles().add(User.ROLE_ADMIN); } return true; } |