aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/BaseObjectResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-28 08:19:56 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-28 08:19:56 +0500
commit34d02fbb63eb3d0cfbbcf63de50561831b0ab38d (patch)
tree531ca159dde1f49651cd53a5595248d1253ad250 /src/org/traccar/api/BaseObjectResource.java
parent5446776933ff412361a3c7812c2bb6de9a78ccaf (diff)
downloadtrackermap-server-34d02fbb63eb3d0cfbbcf63de50561831b0ab38d.tar.gz
trackermap-server-34d02fbb63eb3d0cfbbcf63de50561831b0ab38d.tar.bz2
trackermap-server-34d02fbb63eb3d0cfbbcf63de50561831b0ab38d.zip
One more condition optimizing
Diffstat (limited to 'src/org/traccar/api/BaseObjectResource.java')
-rw-r--r--src/org/traccar/api/BaseObjectResource.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/api/BaseObjectResource.java b/src/org/traccar/api/BaseObjectResource.java
index ea5d4966f..4475e3b4d 100644
--- a/src/org/traccar/api/BaseObjectResource.java
+++ b/src/org/traccar/api/BaseObjectResource.java
@@ -101,9 +101,9 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour
if (manager instanceof SimpleObjectManager) {
((SimpleObjectManager<T>) manager).refreshUserItems();
- }
- if (manager instanceof ExtendedObjectManager) {
- ((ExtendedObjectManager<T>) manager).refreshExtendedPermissions();
+ if (manager instanceof ExtendedObjectManager) {
+ ((ExtendedObjectManager<T>) manager).refreshExtendedPermissions();
+ }
}
if (baseClass.equals(Group.class) || baseClass.equals(Device.class) || baseClass.equals(User.class)) {
Context.getPermissionsManager().refreshDeviceAndGroupPermissions();