Fix App update issue

This commit is contained in:
lasanthaDLPDS 2019-04-28 20:08:10 +05:30
parent 5837e53d1f
commit 93fa110a08

View File

@ -1493,7 +1493,11 @@ public class ApplicationManagerImpl implements ApplicationManager {
List<String> appUnrestrictedRoles = this.visibilityDAO.getUnrestrictedRoles(applicationId, tenantId);
boolean isExistingAppRestricted = !appUnrestrictedRoles.isEmpty();
boolean isUpdatingAppRestricted = !applicationUpdateWrapper.getUnrestrictedRoles().isEmpty();
boolean isUpdatingAppRestricted = false;
if (applicationUpdateWrapper.getUnrestrictedRoles() != null && !applicationUpdateWrapper
.getUnrestrictedRoles().isEmpty()) {
isUpdatingAppRestricted = true;
}
if (isExistingAppRestricted && !isUpdatingAppRestricted) {
visibilityDAO.deleteUnrestrictedRoles(appUnrestrictedRoles, applicationId, tenantId);