1

added @Secured and fixed

Co-authored-by: LukasEttel <lukas.ettie@yahoo.de>
Co-authored-by: AndiBuls <andreas.buls@uni-duesseldorf.de>
This commit is contained in:
[Mahgs]
2020-03-16 15:40:46 +01:00
parent 3f144d14e4
commit e12f0c1d59
2 changed files with 4 additions and 5 deletions

View File

@ -3,8 +3,7 @@ package mops.gruppen2.controller;
import mops.gruppen2.config.Gruppen2Config;
import mops.gruppen2.domain.Exceptions.EventException;
import mops.gruppen2.domain.Group;
import mops.gruppen2.domain.GroupType;
import mops.gruppen2.domain.Role;
import mops.gruppen2.domain.User;
import mops.gruppen2.security.Account;
import mops.gruppen2.service.*;
@ -20,7 +19,6 @@ import org.springframework.web.server.ResponseStatusException;
import javax.annotation.security.RolesAllowed;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
@Controller
@RequestMapping("/gruppen2")
@ -28,8 +26,6 @@ public class Gruppen2Controller {
@Autowired
Gruppen2Config gruppen2Config;
@Autowired
RestTemplate serviceAccountRestTemplate;
private final KeyCloakService keyCloakService;
private final EventService eventService;