Skip to content

Commit

Permalink
[backend] Fix 401 when user not admin and go to page with filters
Browse files Browse the repository at this point in the history
  • Loading branch information
damgouj authored Oct 4, 2024
1 parent 0f8cf4e commit ab25dcf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions openbas-api/src/main/java/io/openbas/schema/SchemaApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequiredArgsConstructor
@RestController
@PreAuthorize("isAdmin()")
@RequestMapping
public class SchemaApi extends RestBehavior {

Expand Down

0 comments on commit ab25dcf

Please sign in to comment.