Skip to content
Snippets Groups Projects
Commit a973e0ac authored by lobo's avatar lobo
Browse files

Merge pull request #1955 from totten/master-smarty-perm

Smarty - Export $crmPermissions object for use in all templates
parents 5b8739fa abbf7b48
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
/**
......
<?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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment