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
abbf7b48
Commit
abbf7b48
authored
11 years ago
by
totten
Browse files
Options
Downloads
Patches
Plain Diff
Smarty - Export $crmPermissions object for use in all templates
parent
89909b95
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/Smarty.php
+2
-0
2 additions, 0 deletions
CRM/Core/Smarty.php
CRM/Core/Smarty/Permissions.php
+9
-0
9 additions, 0 deletions
CRM/Core/Smarty/Permissions.php
with
11 additions
and
0 deletions
CRM/Core/Smarty.php
+
2
−
0
View file @
abbf7b48
...
...
@@ -160,6 +160,8 @@ class CRM_Core_Smarty extends Smarty {
$this
->
register_function
(
'crmURL'
,
array
(
'CRM_Utils_System'
,
'crmURL'
));
$this
->
load_filter
(
'pre'
,
'resetExtScope'
);
$this
->
assign
(
'crmPermissions'
,
new
CRM_Core_Smarty_Permissions
());
}
/**
...
...
This diff is collapsed.
Click to expand it.
CRM/Core/Smarty/Permissions.php
0 → 100644
+
9
−
0
View file @
abbf7b48
<?php
class
CRM_Core_Smarty_Permissions
{
// non-static adapter for CRM_Core_Permission::check
function
check
(
$offset
)
{
return
CRM_Core_Permission
::
check
(
$offset
);
}
}
\ 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