fix(licence): admin role null contexte
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m10s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m10s
This commit is contained in:
parent
1b39c438bf
commit
d613439a82
@ -40,7 +40,7 @@ public class LicenceService {
|
||||
}
|
||||
|
||||
public Uni<List<LicenceModel>> getCurrentSaisonLicence(SecurityCtx securityCtx) {
|
||||
if (securityCtx.getSubject() == null)
|
||||
if (securityCtx == null || securityCtx.getSubject() == null)
|
||||
return repository.find("saison = ?1", Utils.getSaison()).list();
|
||||
|
||||
return combRepository.find("userId = ?1", securityCtx.getSubject()).firstResult().map(MembreModel::getClub)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user