Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Permission=FALSE when retrieving price sets in examples #26399

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

Doing a check causes the whole example to fail -
and this feels like fairly public info

@civibot
Copy link

civibot bot commented Jun 1, 2023

(Standard links)

@civibot civibot bot added the master label Jun 1, 2023
@@ -158,7 +158,7 @@ private function addExampleData(GenericWorkflowMessage $messageTemplate, $exampl
*/
private function getNonQuickConfigPriceSet(): ?array {
// Permission check defaults to true - likely implicitly OK but may need to be false.
return PriceSet::get()
return PriceSet::get(FALSE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comment above it could go too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@demeritcowboy good spotting - I grepped for it & found one more place to change to FALSE

@demeritcowboy demeritcowboy added the merge ready PR will be merged after a few days if there are no objections label Jun 2, 2023
Doing a check causes the whole example to fail -
and this feels like fairly public info
@demeritcowboy demeritcowboy added merge on pass and removed merge ready PR will be merged after a few days if there are no objections labels Jun 2, 2023
@eileenmcnaughton eileenmcnaughton merged commit c5d3fc1 into civicrm:master Jun 2, 2023
@eileenmcnaughton eileenmcnaughton deleted the perm branch June 2, 2023 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants