Improvement add Hook before create users
This commit is contained in:
@@ -197,7 +197,7 @@ class RbacUsers extends BaseRbacUsers
|
|||||||
$pluginRegistry = & PMPluginRegistry::getSingleton();
|
$pluginRegistry = & PMPluginRegistry::getSingleton();
|
||||||
if ($pluginRegistry->existsTrigger(PM_BEFORE_CREATE_USER)) {
|
if ($pluginRegistry->existsTrigger(PM_BEFORE_CREATE_USER)) {
|
||||||
try {
|
try {
|
||||||
$pluginRegistry->executeTriggers(PM_BEFORE_CREATE_USER);
|
$pluginRegistry->executeTriggers(PM_BEFORE_CREATE_USER, null);
|
||||||
} catch(Exception $error) {
|
} catch(Exception $error) {
|
||||||
throw new Exception($error->getMessage());
|
throw new Exception($error->getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user