Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
justinfreeman (Agileware)
Core
Commits
2d511ee8
Commit
2d511ee8
authored
11 years ago
by
lobo
Browse files
Options
Downloads
Plain Diff
Merge pull request #1769 from vivekarora/CRM-12060-4.4Patch
CRM-12060 - Support hook_civicrm_permissions on WordPress
parents
8e4dfccf
73950aa0
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/ACL/Form/WordPress/Permissions.php
+1
-13
1 addition, 13 deletions
CRM/ACL/Form/WordPress/Permissions.php
CRM/Core/Permission/WordPress.php
+13
-0
13 additions, 0 deletions
CRM/Core/Permission/WordPress.php
with
14 additions
and
13 deletions
CRM/ACL/Form/WordPress/Permissions.php
+
1
−
13
View file @
2d511ee8
...
...
@@ -159,19 +159,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
static
function
getPermissionArray
(){
global
$civicrm_root
;
$permissions
=
CRM_Core_Permission
::
getCorePermissions
();
$crmFolderDir
=
$civicrm_root
.
DIRECTORY_SEPARATOR
.
'CRM'
;
$components
=
CRM_Core_Component
::
getComponentsFromFile
(
$crmFolderDir
);
foreach
(
$components
as
$comp
)
{
$perm
=
$comp
->
getPermissions
();
if
(
$perm
)
{
$info
=
$comp
->
getInfo
();
foreach
(
$perm
as
$p
)
{
$permissions
[
$p
]
=
$info
[
'translatedName'
]
.
': '
.
$p
;
}
}
}
$permissions
=
CRM_Core_Permission
::
basicPermissions
();
$perms_array
=
array
();
foreach
(
$permissions
as
$perm
=>
$title
)
{
...
...
This diff is collapsed.
Click to expand it.
CRM/Core/Permission/WordPress.php
+
13
−
0
View file @
2d511ee8
...
...
@@ -87,4 +87,17 @@ class CRM_Core_Permission_WordPress extends CRM_Core_Permission_Base {
}
return
FALSE
;
}
/**
* {@inheritDoc}
*/
public
function
isModulePermissionSupported
()
{
return
TRUE
;
}
/**
* {@inheritdoc}
*/
function
upgradePermissions
(
$permissions
)
{
return
;
}
}
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