mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-03-17 21:36:54 +01:00
Role stuff
This commit is contained in:
@@ -100,10 +100,12 @@ public class PipelineController {
|
||||
@Autowired
|
||||
ApplicationProperties applicationProperties;
|
||||
|
||||
@Autowired
|
||||
@Autowired(required=false)
|
||||
private UserServiceInterface userService;
|
||||
|
||||
private String getApiKeyForUser() {
|
||||
if(userService == null)
|
||||
return "";
|
||||
return userService.getApiKeyForUser(Role.INTERNAL_API_USER.getRoleId());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user