Skip to content

Commit

Permalink
Update uRESTDWBasic.pas
Browse files Browse the repository at this point in the history
- Roniery ajuste para encontrar o evento na lista de eventos, para assim determinar se passa ou não no validador de permissão
  • Loading branch information
ronierys2@hotmail.com committed Mar 20, 2024
1 parent 914bde7 commit a010700
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CORE/Source/Basic/uRESTDWBasic.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3837,6 +3837,11 @@ procedure TRESTClientPoolerBase.SetIpVersion(IpV: TRESTDWClientIpVersions);
vAcceptAuth := False;
vErrorCode := 401;
vErrorMessage := cInvalidAuth;
//Roniery ajuste para encontrar o evento na lista de eventos,
//para assim determinar se passa ou não no validador de permissão
if vUrlToExec[Length(vUrlToExec)] = '/' then
delete(vUrlToExec, Length(vUrlToExec), 1);

// verifica se precisa autenticação
vNeedAuthorization := False;
{$IFNDEF RESTDWLAZARUS}
Expand Down

0 comments on commit a010700

Please sign in to comment.