PMCORE-1349 [19511] Multiple file fields dont work with Action By Email
This commit is contained in:
14
workflow/engine/src/ProcessMaker/Model/AppDocument.php
Normal file
14
workflow/engine/src/ProcessMaker/Model/AppDocument.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace ProcessMaker\Model;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AppDocument extends Model
|
||||
{
|
||||
protected $table = "APP_DOCUMENT";
|
||||
protected $primaryKey = 'APP_DOC_UID';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
}
|
||||
@@ -72,6 +72,10 @@ class Cases extends Api
|
||||
$dynaformUid = $this->parameters[$arrayArgs['dyn_uid']];
|
||||
$delIndex = $this->parameters[$arrayArgs['app_index']];
|
||||
$userUid = $this->getUserId();
|
||||
//check the guest user
|
||||
if ($userUid === RBAC::GUEST_USER_UID) {
|
||||
return true;
|
||||
}
|
||||
//Check if the user has the case
|
||||
$appDelegation = new AppDelegation();
|
||||
$aCurUser = $appDelegation->getCurrentUsers($applicationUid, $delIndex);
|
||||
|
||||
Reference in New Issue
Block a user