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
f173f646
Unverified
Commit
f173f646
authored
3 years ago
by
Seamus Lee
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #20256 from eileenmcnaughton/538
#2601
fix joomla permission regression
parents
ab70282e
34f47692
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/Permission/Base.php
+3
-5
3 additions, 5 deletions
CRM/Core/Permission/Base.php
CRM/Utils/Hook.php
+2
-6
2 additions, 6 deletions
CRM/Utils/Hook.php
with
5 additions
and
11 deletions
CRM/Core/Permission/Base.php
+
3
−
5
View file @
f173f646
...
...
@@ -393,15 +393,13 @@ class CRM_Core_Permission_Base {
* in all enabled CiviCRM module extensions.
*
* @param bool $descriptions
* @param array $permissions
*
* @return array
* Array of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
*/
public
function
getAllModulePermissions
(
$descriptions
=
FALSE
,
&
$permissions
)
:
array
{
$newPermissions
=
[];
CRM_Utils_Hook
::
permission
(
$newPermissions
,
$permissions
);
$permissions
=
array_merge
(
$permissions
,
$newPermissions
);
public
function
getAllModulePermissions
(
$descriptions
=
FALSE
):
array
{
$permissions
=
[];
CRM_Utils_Hook
::
permission
(
$permissions
);
if
(
$descriptions
)
{
foreach
(
$permissions
as
$permission
=>
$label
)
{
...
...
This diff is collapsed.
Click to expand it.
CRM/Utils/Hook.php
+
2
−
6
View file @
f173f646
...
...
@@ -2025,16 +2025,12 @@ abstract class CRM_Utils_Hook {
*
* @param array $newPermissions
* Array to be filled with permissions.
* @param array $permissions
* Already calculated permissions. These can be altered. Notably an
* extension might want to add it's permissions to 'implied' or to
* remove some permissions.
*
* @return null
* The return value is ignored
*/
public
static
function
permission
(
&
$newPermissions
,
&
$permissions
)
{
return
self
::
singleton
()
->
invoke
([
'permissions'
,
'all_permissions'
],
$newPermissions
,
$permissions
,
public
static
function
permission
(
&
$newPermissions
)
{
return
self
::
singleton
()
->
invoke
([
'permissions'
],
$newPermissions
,
self
::
$_nullObject
,
self
::
$_nullObject
,
self
::
$_nullObject
,
self
::
$_nullObject
,
self
::
$_nullObject
,
'civicrm_permission'
);
...
...
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