fix #557: guide permission-driven VPD flow
This commit is contained in:
@@ -30,8 +30,12 @@ public class TokenController {
|
||||
}
|
||||
|
||||
@GetMapping("/tokens")
|
||||
public String tokens(Model model) {
|
||||
model.addAttribute("tokens", tokenService.findAll());
|
||||
public String tokens(
|
||||
@RequestParam(defaultValue = "false") boolean includeInactive,
|
||||
Model model
|
||||
) {
|
||||
model.addAttribute("tokens", tokenService.findAll(includeInactive));
|
||||
model.addAttribute("includeInactive", includeInactive);
|
||||
model.addAttribute("users", userMapper.findAll());
|
||||
model.addAttribute("defaultExpiresAt", defaultExpiresAt());
|
||||
return "tokens";
|
||||
|
||||
Reference in New Issue
Block a user