Revision 65:3f5c16928c91

View differences:

src/main/java/my/com/upass/MinimalUPassControllerV2.java
399 399
				rc = MinimalConstants.ERR_APP_SERV_NOT_PERMITTED;
400 400

  
401 401
			} else {
402
				boolean granted = appAccessMgtService.grantAppAccessToUser(
403
						user.getUserID(), appIdForProfile, UserAppAccess.TYPE_USER, txSession);
402
				List grantedAppAccesses = appAccessMgtService.listAppIdsForUser(user.getUsername(), txSession);
403
				
404
				boolean granted = false;
405
				if (!grantedAppAccesses.contains(new Integer(appIdForProfile)))
406
					granted = appAccessMgtService.grantAppAccessToUser(
407
							user.getUserID(), appIdForProfile, UserAppAccess.TYPE_USER, txSession);
404 408

  
405 409
				rc = granted ?
406 410
						modifyUserService.updateProfileShallowly(profile, txSession)
......
677 681
	 * 
678 682
	 * @see AppAccessMgtService#listRecognizedClientApps(Session)
679 683
	 */
680
	public List/* <ClientApp> */ listRecognizedClientApps(Session txSession) {
684
	public List/* <ClientApp> */listRecognizedClientApps(Session txSession) {
681 685
		return appAccessMgtService.listRecognizedClientApps(txSession);
682 686
	}
683 687

  

Also available in: Unified diff