aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-01-29 11:01:45 +0500
committerAbyss777 <abyss@fox5.ru>2018-01-29 11:01:45 +0500
commit400a82e0c1817f02fcc2b0cf3ffe6f8ee5abf05f (patch)
tree99015fa150d4a4a4a4560d9857c4ad511bf80065 /src/org
parentbda31d967673477331caba9597c1ab57553c4b8d (diff)
downloadtrackermap-server-400a82e0c1817f02fcc2b0cf3ffe6f8ee5abf05f.tar.gz
trackermap-server-400a82e0c1817f02fcc2b0cf3ffe6f8ee5abf05f.tar.bz2
trackermap-server-400a82e0c1817f02fcc2b0cf3ffe6f8ee5abf05f.zip
Fix formatting
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/api/BaseObjectResource.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/org/traccar/api/BaseObjectResource.java b/src/org/traccar/api/BaseObjectResource.java
index 596195cae..7de6a3877 100644
--- a/src/org/traccar/api/BaseObjectResource.java
+++ b/src/org/traccar/api/BaseObjectResource.java
@@ -81,11 +81,11 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour
} else if (baseClass.equals(Command.class)) {
Context.getPermissionsManager().checkLimitCommands(getUserId());
} else if (entity instanceof GroupedModel && ((GroupedModel) entity).getGroupId() != 0) {
- Context.getPermissionsManager().checkPermission(Group.class, getUserId(),
- ((GroupedModel) entity).getGroupId());
+ Context.getPermissionsManager().checkPermission(
+ Group.class, getUserId(), ((GroupedModel) entity).getGroupId());
} else if (entity instanceof ScheduledModel && ((ScheduledModel) entity).getCalendarId() != 0) {
- Context.getPermissionsManager().checkPermission(Calendar.class, getUserId(),
- ((ScheduledModel) entity).getCalendarId());
+ Context.getPermissionsManager().checkPermission(
+ Calendar.class, getUserId(), ((ScheduledModel) entity).getCalendarId());
}
BaseObjectManager<T> manager = Context.getManager(baseClass);
@@ -116,11 +116,11 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour
} else if (baseClass.equals(Command.class)) {
Context.getPermissionsManager().checkLimitCommands(getUserId());
} else if (entity instanceof GroupedModel && ((GroupedModel) entity).getGroupId() != 0) {
- Context.getPermissionsManager().checkPermission(Group.class, getUserId(),
- ((GroupedModel) entity).getGroupId());
+ Context.getPermissionsManager().checkPermission(
+ Group.class, getUserId(), ((GroupedModel) entity).getGroupId());
} else if (entity instanceof ScheduledModel && ((ScheduledModel) entity).getCalendarId() != 0) {
- Context.getPermissionsManager().checkPermission(Calendar.class, getUserId(),
- ((ScheduledModel) entity).getCalendarId());
+ Context.getPermissionsManager().checkPermission(
+ Calendar.class, getUserId(), ((ScheduledModel) entity).getCalendarId());
}
Context.getPermissionsManager().checkPermission(baseClass, getUserId(), entity.getId());