Problem description:
- given:
- there's have a collection A
- I have the view role on the collection A (not authorized to manage scope/permissions)
- when:
- I copy the collection
- then:
- a new collection is created without any copies of the roles/permissons/entities
- expected:
- no collection is being created if I'm not authorized to manage the collection
AT:
- copying a collection requires a manager role, any other role is not allowed to perform the operation
Context:
Right now, the above described scenario leads to copy collections endpoint to create collections that can't be used anywhere.
The bug is not there anymore, see: https://github.com/camunda/camunda-optimize/pull/1235#discussion_r345036103