Code refactoring.

revert-70aa11f8
Harshan Liyanage 8 years ago
parent 074ceeb0c7
commit a21c374b00

@ -147,7 +147,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
// check whether the user is device-mgt admin // check whether the user is device-mgt admin
if (deviceAccessAuthorizationService.isDeviceAdminUser()) { if (deviceAccessAuthorizationService.isDeviceAdminUser()) {
if ((user != null && !user.isEmpty())) { if (user != null && !user.isEmpty()) {
request.setOwner(MultitenantUtils.getTenantAwareUsername(user)); request.setOwner(MultitenantUtils.getTenantAwareUsername(user));
} else if (userPattern != null && !userPattern.isEmpty()) { } else if (userPattern != null && !userPattern.isEmpty()) {
request.setOwnerPattern(userPattern); request.setOwnerPattern(userPattern);

Loading…
Cancel
Save