HOR-3926
This commit is contained in:
committed by
davidcallizaya
parent
2509ba1612
commit
465264d57c
@@ -1,4 +1,11 @@
|
||||
<?php
|
||||
|
||||
//Check guest user
|
||||
if (isset($_GET['USR_UID']) && RBAC::isGuestUserUid($_GET['USR_UID'])) {
|
||||
throw new Exception(G::LoadTranslation("ID_USER_CAN_NOT_UPDATE", array($_GET['USR_UID'])));
|
||||
return;
|
||||
}
|
||||
|
||||
//calculating the max upload file size;
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
|
||||
@@ -95,6 +95,11 @@ try {
|
||||
$total = $webEntry->getWebEntryRelatedToUser($userUid);
|
||||
}
|
||||
|
||||
//check user guest
|
||||
if (RBAC::isGuestUserUid($userUid)) {
|
||||
$total++;
|
||||
}
|
||||
|
||||
$response = '{success: true, candelete: ';
|
||||
$response .= ($total > 0) ? 'false' : 'true';
|
||||
$response .= ', hashistory: ';
|
||||
|
||||
Reference in New Issue
Block a user