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:
David Callizaya
2017-09-29 15:04:50 +00:00
committed by Paula Quispe

View File

@@ -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';
} }
/** /**