diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-01 20:40:45 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-01-01 20:40:45 +1300 |
commit | 8686fbe48d485be94b63e723258f19ef93abcaad (patch) | |
tree | 225911da1fa8d315fa444b4437be55f7b542a625 /src/org/traccar/database | |
parent | 07dddfa531179f9ccdf73410e44807d84c480fd3 (diff) | |
download | trackermap-server-8686fbe48d485be94b63e723258f19ef93abcaad.tar.gz trackermap-server-8686fbe48d485be94b63e723258f19ef93abcaad.tar.bz2 trackermap-server-8686fbe48d485be94b63e723258f19ef93abcaad.zip |
Always allow admin to register new users
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/PermissionsManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java index b0f544a42..5557f37e5 100644 --- a/src/org/traccar/database/PermissionsManager.java +++ b/src/org/traccar/database/PermissionsManager.java @@ -64,7 +64,7 @@ public class PermissionsManager { } } - private boolean isAdmin(long userId) { + public boolean isAdmin(long userId) { return users.containsKey(userId) && users.get(userId).getAdmin(); } |