aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-20 14:42:01 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-20 14:42:01 +1300
commit5947767811b376a26c550661a7f5362d0d884f84 (patch)
tree99bf9b319840c3163f7da644281138bc495971a9 /src/org/traccar/database
parent3eff91673944f202e0aebe20faa925011568b685 (diff)
downloadtrackermap-server-5947767811b376a26c550661a7f5362d0d884f84.tar.gz
trackermap-server-5947767811b376a26c550661a7f5362d0d884f84.tar.bz2
trackermap-server-5947767811b376a26c550661a7f5362d0d884f84.zip
Remove generic method for permissions
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/PermissionsManager.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/org/traccar/database/PermissionsManager.java b/src/org/traccar/database/PermissionsManager.java
index 4f3acf00c..a38a29c32 100644
--- a/src/org/traccar/database/PermissionsManager.java
+++ b/src/org/traccar/database/PermissionsManager.java
@@ -22,7 +22,6 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.traccar.helper.Log;
-import org.traccar.model.Device;
import org.traccar.model.Permission;
import org.traccar.model.User;
@@ -83,12 +82,4 @@ public class PermissionsManager {
}
}
- public <T> void check(Class<T> clazz, long userId, long entityId) throws SecurityException {
- if (clazz.equals(User.class)) {
- checkUser(userId, entityId);
- } else if (clazz.equals(Device.class)) {
- checkDevice(userId, entityId);
- }
- }
-
}