Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SUD Éducation
Cartable
Commits
21d424f5
Commit
21d424f5
authored
1 year ago
by
Bastien Ho
Browse files
Options
Download
Email Patches
Plain Diff
Adds "impersonate" capability
parent
896e4884
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cartable/CRM/Cartable/Upgrader.php
+3
-0
cartable/CRM/Cartable/Upgrader.php
cartable/CRM/Cartable/Upgrader/upgrade_0037.php
+9
-0
cartable/CRM/Cartable/Upgrader/upgrade_0037.php
with
12 additions
and
0 deletions
+12
-0
cartable/CRM/Cartable/Upgrader.php
+
3
-
0
View file @
21d424f5
...
...
@@ -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"
)){
...
...
This diff is collapsed.
Click to expand it.
cartable/CRM/Cartable/Upgrader/upgrade_0037.php
0 → 100644
+
9
-
0
View file @
21d424f5
<?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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets