From f7d026ac1d2b09a8dec06e034495ef1f4cff8f50 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 1 Feb 2019 18:48:08 +0200 Subject: [PATCH] Merge with master --- .../org/thingsboard/server/controller/EntityViewController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/java/org/thingsboard/server/controller/EntityViewController.java b/application/src/main/java/org/thingsboard/server/controller/EntityViewController.java index ba98f4179d..b0d9896e4b 100644 --- a/application/src/main/java/org/thingsboard/server/controller/EntityViewController.java +++ b/application/src/main/java/org/thingsboard/server/controller/EntityViewController.java @@ -349,7 +349,7 @@ public class EntityViewController extends BaseController { checkParameter(ENTITY_VIEW_ID, strEntityViewId); try { EntityViewId entityViewId = new EntityViewId(toUUID(strEntityViewId)); - EntityView entityView = checkEntityViewId(entityViewId); + EntityView entityView = checkEntityViewId(entityViewId, Operation.ASSIGN_TO_CUSTOMER); Customer publicCustomer = customerService.findOrCreatePublicCustomer(entityView.getTenantId()); EntityView savedEntityView = checkNotNull(entityViewService.assignEntityViewToCustomer(getCurrentUser().getTenantId(), entityViewId, publicCustomer.getId()));