Fixed paramter name.

Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
kaizimmerm
2016-10-25 19:47:13 +02:00
parent 14f07c1f82
commit 1d0028ce9e

View File

@@ -116,19 +116,19 @@ public class AmqpAuthenticationMessageHandler extends BaseAmqpService {
*
* @param secruityToken
* the security token which holds the target ID to check on
* @param localArtifact
* the local artifact to verify if the given target is allowed to
* download this artifact
* @param artifact
* the artifact to verify if the given target is allowed to
* download it
*/
private void checkIfArtifactIsAssignedToTarget(final TenantSecurityToken secruityToken,
final org.eclipse.hawkbit.repository.model.Artifact localArtifact) {
final org.eclipse.hawkbit.repository.model.Artifact artifact) {
if (secruityToken.getControllerId() != null) {
checkByControllerId(localArtifact, secruityToken.getControllerId());
checkByControllerId(artifact, secruityToken.getControllerId());
} else if (secruityToken.getTargetId() != null) {
checkByTargetId(localArtifact, secruityToken.getTargetId());
checkByTargetId(artifact, secruityToken.getTargetId());
} else {
LOG.info("anonymous download no authentication check for artifact {}", localArtifact);
LOG.info("anonymous download no authentication check for artifact {}", artifact);
return;
}