Qualify cactionevents for eventorganization
This commit is contained in:
parent
6519edabc5
commit
244f3913b0
@ -216,6 +216,9 @@ class CActionComm
|
|||||||
if ($obj->module == 'shipping' && !empty($conf->expedition->enabled) && !empty($user->rights->expedition->lire)) {
|
if ($obj->module == 'shipping' && !empty($conf->expedition->enabled) && !empty($user->rights->expedition->lire)) {
|
||||||
$qualified = 1;
|
$qualified = 1;
|
||||||
}
|
}
|
||||||
|
if (preg_split("/@/", $obj->module, -1)[1] == 'eventorganization' && !empty($conf->eventorganization->enabled)) {
|
||||||
|
$qualified = 1;
|
||||||
|
}
|
||||||
// For the generic case with type = 'module...' and module = 'myobject@mymodule'
|
// For the generic case with type = 'module...' and module = 'myobject@mymodule'
|
||||||
$regs = array();
|
$regs = array();
|
||||||
if (preg_match('/^module/', $obj->type)) {
|
if (preg_match('/^module/', $obj->type)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user