Hello, I have a question about includeFrom and declarative security.
Consider this scenario:
- DataSource dsA has a default fetch operationBinding with requiresRole="Role_A"
- DataSource dsB has a default fetch operationBinding with requiresRole="Role_B"
- dsB has a field <field name="foo_B" includeFrom="dsA.foo_A"/> included from dsA
Now, the default fetch of dsB will not work unless the user has both Role_A and Role_B.
This makes sense (even though I couldn't find it clearly stated in the documentation).
Here's my question: is there a way to allow the default fetch of dsB to work even if the user only has Role_B?
So far I’ve tried setting viewRequiresRole="" on the included field foo_A in dsA, and viewRequiresRole="Role_B" on the foo_B field in dsB, but neither approach seems to work.
Since this kind of setup introduces a strong dependency between roles and DataSources, I think it would be useful to have a way to explicitly define this behaviour. What do you think?
Consider this scenario:
- DataSource dsA has a default fetch operationBinding with requiresRole="Role_A"
- DataSource dsB has a default fetch operationBinding with requiresRole="Role_B"
- dsB has a field <field name="foo_B" includeFrom="dsA.foo_A"/> included from dsA
Now, the default fetch of dsB will not work unless the user has both Role_A and Role_B.
This makes sense (even though I couldn't find it clearly stated in the documentation).
Here's my question: is there a way to allow the default fetch of dsB to work even if the user only has Role_B?
So far I’ve tried setting viewRequiresRole="" on the included field foo_A in dsA, and viewRequiresRole="Role_B" on the foo_B field in dsB, but neither approach seems to work.
Since this kind of setup introduces a strong dependency between roles and DataSources, I think it would be useful to have a way to explicitly define this behaviour. What do you think?
Comment