mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
updating existing shared scope not required
This commit is contained in:
parent
a031579b80
commit
de963fa01b
@ -135,14 +135,6 @@ public class APIPublisherServiceImpl implements APIPublisherService {
|
||||
scope.setRoles(apiScope.getRoles());
|
||||
apiProvider.addSharedScope(scope, tenantDomain);
|
||||
}
|
||||
} else {
|
||||
// if already available as shared scope -> update
|
||||
Scope scope = new Scope();
|
||||
scope.setName(apiScope.getName());
|
||||
scope.setDescription(apiScope.getDescription());
|
||||
scope.setKey(apiScope.getKey());
|
||||
scope.setRoles(apiScope.getRoles());
|
||||
apiProvider.updateSharedScope(scope, tenantDomain);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user