Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Allow option to not skipping security when loading objects for field#5

Merged
habbes merged 1 commit into
v1-develfrom
task-666
Jun 12, 2017
Merged

Allow option to not skipping security when loading objects for field#5
habbes merged 1 commit into
v1-develfrom
task-666

Conversation

@habbes
Copy link
Copy Markdown

@habbes habbes commented Jun 12, 2017

The method CB\Browser.getFieldsForObject sets the skipSecurity parameter to true before running the search query to skip security checks when loading objects for field. Since it sets it unconditionally, it would override whatever value the user has set in the field config.

I've added a condition to not set the parameter to true if the parameter is already explicitly set in the config. That way the skipSecurity parameter can be turned off (either in the field config or custom source) to load only objects the user has permission to access.

This addresses Task #666, where we need an objects search field to allow users to only select objects they have access to.

@habbes habbes merged commit 543b89e into v1-devel Jun 12, 2017
@habbes habbes deleted the task-666 branch July 6, 2017 11:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant