Merged in bugfix/HOR-3905 (pull request #6082)
HOR-3905 Approved-by: Marco Antonio Nina Mena <marco.antonio.nina@processmaker.com> Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
namespace ProcessMaker\BusinessModel;
|
namespace ProcessMaker\BusinessModel;
|
||||||
|
|
||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
|
use WebEntryPeer;
|
||||||
|
|
||||||
class WebEntry
|
class WebEntry
|
||||||
{
|
{
|
||||||
@@ -1079,8 +1080,10 @@ class WebEntry
|
|||||||
*/
|
*/
|
||||||
public function isWebEntryOne($weUid)
|
public function isWebEntryOne($weUid)
|
||||||
{
|
{
|
||||||
$webEntry = \WebEntryPeer::retrieveByPK($weUid);
|
$webEntry = WebEntryPeer::retrieveByPK($weUid);
|
||||||
return $webEntry->getWeType()==='SINGLE' && $webEntry->getWeAuthentication()==='ANONYMOUS';
|
return $webEntry->getWeType() === 'SINGLE'
|
||||||
|
&& $webEntry->getWeAuthentication() === 'ANONYMOUS'
|
||||||
|
&& $webEntry->getWeCallback() === 'PROCESSMAKER';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user