mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Code refactoring.
This commit is contained in:
parent
074ceeb0c7
commit
a21c374b00
@ -147,7 +147,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
||||
|
||||
// check whether the user is device-mgt admin
|
||||
if (deviceAccessAuthorizationService.isDeviceAdminUser()) {
|
||||
if ((user != null && !user.isEmpty())) {
|
||||
if (user != null && !user.isEmpty()) {
|
||||
request.setOwner(MultitenantUtils.getTenantAwareUsername(user));
|
||||
} else if (userPattern != null && !userPattern.isEmpty()) {
|
||||
request.setOwnerPattern(userPattern);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user