From 8686fbe48d485be94b63e723258f19ef93abcaad Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 1 Jan 2016 20:40:45 +1300 Subject: Always allow admin to register new users --- src/org/traccar/database/PermissionsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/database') 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(); } -- cgit v1.2.3