Merge pull request 'Search roles with partial role names' (#281) from prathabanKavin/device-mgt-core:searchrolefix into master

Reviewed-on: https://repository.entgra.net/community/device-mgt-core/pulls/281
This commit is contained in:
Pahansith Gunathilake 2023-11-06 06:22:13 +00:00
commit d1799e54e7

View File

@ -670,7 +670,7 @@ public class RoleManagementServiceImpl implements RoleManagementService {
if ((filter == null) || filter.isEmpty()) { if ((filter == null) || filter.isEmpty()) {
filter = "*"; filter = "*";
} else { } else {
filter += "*"; filter = "*" + filter + "*";
} }
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("Getting the list of user roles"); log.debug("Getting the list of user roles");