BY-200 CLONE - Asignar permisos a los archivos en Google Drive cuando la tarea a la que se deriva es ScriptTask

- La funcion no contemplaba ese tipo de derivacion.
- Se cambio la funcion para que haga un barrido de la tabla app_delegation para obtener los usuarios de la siguiente tarea.

Identation
This commit is contained in:
Marco A. Nina Mena
2016-02-29 12:45:35 -04:00
parent 6e56feb708
commit ef37ef5ce4
2 changed files with 55 additions and 96 deletions

View File

@@ -183,18 +183,6 @@ try {
}
// Send notifications Mobile - End
// Set users drive - start
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
G::LoadClass( "AppDocumentDrive" );
$drive = new AppDocumentDrive();
if ($drive->getStatusDrive()) {
$drive->addUserDrive($aUser['USR_EMAIL']);
$drive ->addUsersDocumentDrive($appFields['APP_UID'], $_POST['form']['TASKS'], $appFields['APP_DATA']);
}
}
// Set users drive - End
// Events - Start
$oEvent = new Event();
@@ -220,6 +208,21 @@ try {
}
}
//Events - End
/*----------------------------------********---------------------------------*/
// Set users drive - start
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
G::LoadClass("AppDocumentDrive");
$drive = new AppDocumentDrive();
if ($drive->getStatusDrive()) {
//add users email next task
$drive->addUsersDocumentDrive($appFields['APP_UID']);
}
}
// Set users drive - End
/*----------------------------------********---------------------------------*/
$debuggerAvailable = true;
if (isset( $_SESSION['user_experience'] )) {