Revision 95:24bd5e54cdf0
src/main/java/my/com/upass/MinimalUPassControllerV2.java | ||
---|---|---|
454 | 454 |
throws UPassException { |
455 | 455 |
|
456 | 456 |
boolean valid = profile.validateProperties(); |
457 |
if (!valid)
|
|
457 |
if (!valid) |
|
458 | 458 |
throw new UPassException(MinimalConstants.ERR_INVALID_INPUT); |
459 | 459 |
|
460 | 460 |
final MinimalUserBean user = profile.getMinUser(); |
... | ... | |
463 | 463 |
|
464 | 464 |
if (profile instanceof M2uUserContainer) { |
465 | 465 |
UserProfile m2uUser = findProfile_noAccessCheck(username, ClientApp.APP_ID_M2U, txSession); |
466 |
if (m2uUser == null) |
|
466 |
if (m2uUser instanceof M2uUser) |
|
467 |
((M2uUserContainer) profile).setM2uUser((M2uUser) m2uUser); |
|
468 |
else |
|
467 | 469 |
throw new UPassException(MinimalConstants.ERR_APP_SERV_NOT_PERMITTED); |
468 |
}
|
|
470 |
} |
|
469 | 471 |
final int appIdForProfile = AppAccessMgtService.getAppIdForProfile(profile).intValue(); |
470 | 472 |
|
471 | 473 |
List grantedAppAccesses = appAccessMgtService.listAppIdsForUser(username, txSession); |
Also available in: Unified diff