Skip to content

Commit

Permalink
🔧 Allow railway records
Browse files Browse the repository at this point in the history
  • Loading branch information
frontedu committed Jul 21, 2023
1 parent 25b344d commit da85c5d
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 38,459 deletions.
Binary file not shown.
14,778 changes: 0 additions & 14,778 deletions logs/controlevacinacao.log

This file was deleted.

23,669 changes: 0 additions & 23,669 deletions logs/fidex.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/java/web/fidex/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// URLs
.requestMatchers("/compras", "/produtos", "/premios", "/clientes")
.hasAnyRole("ADMIN", "USUARIO")
.requestMatchers("/relatorios/compras", "/relatorios/clientes", "/relatorios/produtos", "/relatorios/premios", "/usuarios/cadastrar").hasRole("ADMIN")
.requestMatchers("/relatorios/compras", "/relatorios/clientes", "/relatorios/produtos", "/relatorios/premios").hasRole("ADMIN")
// .requestMatchers("URL").hasAnyRole("ADMIN", "USUARIO")
// Todas as outras requisições exigem um usuário autenticado
.anyRequest().permitAll())
Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/templates/usuario/cadastrar.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ <h1>Cadastro de Usuário</h1>
<label for="dataNascimento" class="form-label mt-3">Data de Nascimento:</label>
<input type="text" id="dataNascimento" th:field="*{dataNascimento}" class="form-control mb-4 componentedata" th:errorclass="is-invalid">
<span class="invalid-feedback" th:if="${#fields.hasErrors('dataNascimento')}" th:each="erro : ${#fields.errors('dataNascimento')}" th:text="${erro} + '. '"></span>
<div th:each="papel: ${todosPapeis}" class="form-check">
<input type="checkbox" th:field="*{papeis}" th:value="${papel.codigo}" class="form-check-input">
<label th:for="${#ids.prev('papeis')}" th:text="${papel.nome}" class="form-check-label">Texto checkbox 1</label>
</div>
<span class="invalid-feedback" th:if="${#fields.hasErrors('papeis')}" th:each="erro : ${#fields.errors('papeis')}" th:text="${erro} + '. '"></span>
<input type="submit" value="Cadastrar" class="btn btn-primary mt-4">
</form>
Expand Down
2 changes: 1 addition & 1 deletion target/classes/templates/compras.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h2>Nova compra</h2>
<div class="input-group">
<select id="client" name="client">
<option th:each="client : ${clients}" th:value="${client.id}"
th:text="${client.name}"></option>
th:text="${client.name}" th:if="${client.createdBy == username}"></option>
</select>
<label for="client">Cliente</label>
</div>
Expand Down
4 changes: 2 additions & 2 deletions target/classes/templates/premios.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ <h2>Nova premiação
<div class="input-group">
<select id="client" name="client">
<option th:each="client : ${clients}" th:value="${client.id}"
th:text="${client.name}"></option>
th:text="${client.name}" th:if="${client.createdBy == username}"></option>
</select>
<label for="client">Cliente</label>
</div>
<div class="input-group">
<select id="product" name="product">
<option th:each="product : ${products}" th:value="${product.id}"
th:text="${product.name}"></option>
th:text="${product.name}" th:if="${product.createdBy == username}"></option>
</select>
<label for="product">Produto</label>
</div>
Expand Down
4 changes: 0 additions & 4 deletions target/classes/templates/usuario/cadastrar.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ <h1>Cadastro de Usuário</h1>
<label for="dataNascimento" class="form-label mt-3">Data de Nascimento:</label>
<input type="text" id="dataNascimento" th:field="*{dataNascimento}" class="form-control mb-4 componentedata" th:errorclass="is-invalid">
<span class="invalid-feedback" th:if="${#fields.hasErrors('dataNascimento')}" th:each="erro : ${#fields.errors('dataNascimento')}" th:text="${erro} + '. '"></span>
<div th:each="papel: ${todosPapeis}" class="form-check">
<input type="checkbox" th:field="*{papeis}" th:value="${papel.codigo}" class="form-check-input">
<label th:for="${#ids.prev('papeis')}" th:text="${papel.nome}" class="form-check-label">Texto checkbox 1</label>
</div>
<span class="invalid-feedback" th:if="${#fields.hasErrors('papeis')}" th:each="erro : ${#fields.errors('papeis')}" th:text="${erro} + '. '"></span>
<input type="submit" value="Cadastrar" class="btn btn-primary mt-4">
</form>
Expand Down

0 comments on commit da85c5d

Please sign in to comment.