Skip to content

Commit 52c838b

Browse files
authored
Update uRESTDWBasic.pas (#381)
2 parents eb6f036 + 28754dc commit 52c838b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CORE/Source/Basic/uRESTDWBasic.pas

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,6 +2346,11 @@ procedure TRESTClientPoolerBase.SetIpVersion(IpV: TRESTDWClientIpVersions);
23462346
vAcceptAuth := False;
23472347
vErrorCode := 401;
23482348
vErrorMessage := cInvalidAuth;
2349+
//Roniery ajuste para encontrar o evento na lista de eventos,
2350+
//para assim determinar se passa ou não no validador de permissão
2351+
if vUrlToExec[Length(vUrlToExec)] = '/' then
2352+
delete(vUrlToExec, Length(vUrlToExec), 1);
2353+
23492354
// verifica se precisa autenticação
23502355
vNeedAuthorization := False;
23512356
{$IFNDEF RESTDWLAZARUS}

0 commit comments

Comments
 (0)