Commit 21d424f5 authored by Bastien Ho's avatar Bastien Ho :alien:
Browse files

Adds "impersonate" capability

parent 896e4884
Showing with 12 additions and 0 deletions
+12 -0
......@@ -140,6 +140,9 @@ class CRM_Cartable_Upgrader extends CRM_Cartable_Upgrader_Base {
public function upgrade_0036() {
return $this->include_upgrade_version(__FUNCTION__);
}
public function upgrade_0037() {
return $this->include_upgrade_version(__FUNCTION__);
}
public function include_upgrade_version($version) {
if(file_exists(__DIR__."/Upgrader/{$version}.php")){
......
<?php
/**
* Allows managers to manage impersonate
*/
if(function_exists('get_role')){
$role = get_role( 'manager' );
$role->add_cap( 'impersonate' );
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment