aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/CalendarManager.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-01-16 16:27:51 +0500
committerAbyss777 <abyss@fox5.ru>2017-01-16 16:34:31 +0500
commit8a19ed9994e6bdd531faa3021711fc0e89497ca8 (patch)
treefa53e0b262be74b3bf4dd429219a4e20236493c9 /src/org/traccar/database/CalendarManager.java
parentb5eb48cbba215ca55c1a5e5ae5fae5b375243247 (diff)
downloadtrackermap-server-8a19ed9994e6bdd531faa3021711fc0e89497ca8.tar.gz
trackermap-server-8a19ed9994e6bdd531faa3021711fc0e89497ca8.tar.bz2
trackermap-server-8a19ed9994e6bdd531faa3021711fc0e89497ca8.zip
- Rename otherUserId to managedUserId
- Optimize getManaged* functions
Diffstat (limited to 'src/org/traccar/database/CalendarManager.java')
-rw-r--r--src/org/traccar/database/CalendarManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/CalendarManager.java b/src/org/traccar/database/CalendarManager.java
index d755bd396..31d484327 100644
--- a/src/org/traccar/database/CalendarManager.java
+++ b/src/org/traccar/database/CalendarManager.java
@@ -73,8 +73,8 @@ public class CalendarManager {
public Collection<Calendar> getManagedCalendars(long userId) {
ArrayList<Calendar> result = new ArrayList<>();
result.addAll(getUserCalendars(userId));
- for (long otherUserId : Context.getPermissionsManager().getUserPermissions(userId)) {
- result.addAll(getUserCalendars(otherUserId));
+ for (long managedUserId : Context.getPermissionsManager().getUserPermissions(userId)) {
+ result.addAll(getUserCalendars(managedUserId));
}
return result;
}