Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
f3bc780b
Unverified
Commit
f3bc780b
authored
11 months ago
by
Eileen McNaughton
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #30054 from colemanw/fixSavingSearch
SearchKit - Fix saving search displays with 'Bypass Permissions'
parents
018d0131
44a6ae20
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ext/search_kit/CRM/Search/BAO/SearchDisplay.php
+1
-1
1 addition, 1 deletion
ext/search_kit/CRM/Search/BAO/SearchDisplay.php
with
1 addition
and
1 deletion
ext/search_kit/CRM/Search/BAO/SearchDisplay.php
+
1
−
1
View file @
f3bc780b
...
...
@@ -49,7 +49,7 @@ class CRM_Search_BAO_SearchDisplay extends CRM_Search_DAO_SearchDisplay implemen
}
// Ensure only super-admins may update SavedSearches linked to displays with `acl_bypass`
else
if
(
$recordType
===
'SavedSearch'
&&
$e
->
getActionName
()
===
'update'
)
{
if
(
$recordType
===
'SavedSearch'
&&
$e
->
getActionName
()
===
'update'
&&
!
CRM_Core_Permission
::
check
(
'all CiviCRM permissions and ACLs'
,
$userCID
)
)
{
$id
=
(
int
)
$e
->
getRecord
()[
'id'
];
$sql
=
"SELECT COUNT(id) FROM civicrm_search_display WHERE acl_bypass = 1 AND saved_search_id =
$id
"
;
if
(
CRM_Core_DAO
::
singleValueQuery
(
$sql
))
{
...
...
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