From 34d02fbb63eb3d0cfbbcf63de50561831b0ab38d Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 28 Jul 2017 08:19:56 +0500 Subject: One more condition optimizing --- src/org/traccar/api/BaseObjectResource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 extends BaseResour if (manager instanceof SimpleObjectManager) { ((SimpleObjectManager) manager).refreshUserItems(); - } - if (manager instanceof ExtendedObjectManager) { - ((ExtendedObjectManager) manager).refreshExtendedPermissions(); + if (manager instanceof ExtendedObjectManager) { + ((ExtendedObjectManager) manager).refreshExtendedPermissions(); + } } if (baseClass.equals(Group.class) || baseClass.equals(Device.class) || baseClass.equals(User.class)) { Context.getPermissionsManager().refreshDeviceAndGroupPermissions(); -- cgit v1.2.3