Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
brienne
Developer Documentation
Commits
bf5d273b
Unverified
Commit
bf5d273b
authored
6 years ago
by
Seamus Lee
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #540 from civicrm/selectWhereClause_check_permissions
Update hook_civicrm_selectWhereClause.md
parents
2dbb477f
5f06643b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hooks/hook_civicrm_selectWhereClause.md
+4
-2
4 additions, 2 deletions
docs/hooks/hook_civicrm_selectWhereClause.md
with
4 additions
and
2 deletions
docs/hooks/hook_civicrm_selectWhereClause.md
+
4
−
2
View file @
bf5d273b
...
...
@@ -8,7 +8,9 @@ This hook is called when executing a SELECT query.
The hook is called
once for each entity in the query, allowing you to add (or remove)
restrictions specific to that entity.
restrictions specific to that entity. Note that this hook will only be
invoked for API calls if check_permissions is set to 1. It will be
bypassed for API calls that do not set this parameter.
This hook is new in 4.7 and coverage is limited. The Case entity is
fully covered by this hook; selecting cases via api, ui, or searches
...
...
@@ -58,4 +60,4 @@ like so:
if ($entity == 'Email') {
$clauses['contact_id'][] = "IN (SELECT id FROM civicrm_contact WHERE contact_type = 'Individual')";
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment