BUG-9981: En el servidor de Telefonica, no se visualizan todos los... SOLVED
- No se realizaba la verificacion en la tabla PERMISSIONS de la base de datos RBAC al realizar upgrade. - Se agrega la funcion verifyPermissions en la clase rbac.php la cual verifica los permisos, realizando los insert de los permisos que faltaran de acuerdo a la funcion loadPermissionAdmin, al realizar el upgrade.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
G::LoadSystem('dbMaintenance');
|
||||
G::LoadClass("cli");
|
||||
G::LoadClass("multipleFilesBackup");
|
||||
G::LoadSystem('rbac' );
|
||||
|
||||
/**
|
||||
* class workspaceTools
|
||||
@@ -89,7 +90,7 @@ class workspaceTools
|
||||
$stop = microtime(true);
|
||||
$final = $stop - $start;
|
||||
CLI::logging("<*> Updating cache view Process took $final seconds.\n");
|
||||
|
||||
|
||||
$start = microtime(true);
|
||||
CLI::logging("> Updating cases directories structure...\n");
|
||||
$this->upgradeCasesDirectoryStructure($workSpace);
|
||||
@@ -460,6 +461,20 @@ class workspaceTools
|
||||
//Update APP_DELEGATION.DEL_LAST_INDEX data
|
||||
$res = $appCache->updateAppDelegationDelLastIndex($lang, $checkOnly);
|
||||
|
||||
CLI::logging("-> Update table RBAC Permissions... \n");
|
||||
//Update table RBAC permissions
|
||||
Bootstrap::LoadSystem( 'rbac' );
|
||||
$RBAC = & RBAC::getSingleton();
|
||||
$RBAC->initRBAC();
|
||||
$resutl = $RBAC->verifyPermissions();
|
||||
if (count($resutl) > 1) {
|
||||
foreach($resutl as $item) {
|
||||
CLI::logging(" $item... \n");
|
||||
}
|
||||
} else {
|
||||
CLI::logging(" No Changes... \n");
|
||||
}
|
||||
|
||||
CLI::logging("-> Creating triggers\n");
|
||||
//now check if we have the triggers installed
|
||||
$triggers = array();
|
||||
|
||||
Reference in New Issue
Block a user