Merged in bugfix/PMCORE-1578 (pull request #7403)

PMCORE-1578

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Paula Quispe
2020-06-24 13:27:29 +00:00
committed by Julio Cesar Laura Avendaño
3 changed files with 18 additions and 6 deletions

View File

@@ -185,9 +185,13 @@ class JobsManager
public function dispatch($name, $callback)
{
$environment = $this->getDataSnapshot();
$instance = $name::dispatch(function() use ($callback, $environment) {
global $RBAC;
$referrerRBAC = $RBAC;
$instance = $name::dispatch(function() use ($callback, $environment, $referrerRBAC) {
try {
global $RBAC;
$RBAC = $referrerRBAC;
$this->recoverDataSnapshot($environment);
$callback($environment);
} catch (Exception $e) {

View File

@@ -33,6 +33,7 @@ class SubApplication extends Model
'SA_INIT_DATE' => '',
'SA_FINISH_DATE' => ''
];
/**
* The attributes that are mass assignable.
*
@@ -49,4 +50,5 @@ class SubApplication extends Model
'SA_INIT_DATE',
'SA_FINISH_DATE'
];
}
}