I don't get it, how does it keeps failing with the formatter installed... time to create pre-commit hook I guess
This commit is contained in:
parent
80b2d087e4
commit
4880f3829c
@ -31,8 +31,6 @@ public class EntrepreneurApiService {
|
|||||||
this.utilsService = utilsService;
|
this.utilsService = utilsService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void editSectionCell(Long sectionCellId, SectionCell sectionCell, String mail) {
|
public void editSectionCell(Long sectionCellId, SectionCell sectionCell, String mail) {
|
||||||
SectionCell editSectionCell = sectionCellService.getSectionCellById(sectionCellId);
|
SectionCell editSectionCell = sectionCellService.getSectionCellById(sectionCellId);
|
||||||
if (editSectionCell == null) {
|
if (editSectionCell == null) {
|
||||||
@ -40,7 +38,8 @@ public class EntrepreneurApiService {
|
|||||||
throw new ResponseStatusException(
|
throw new ResponseStatusException(
|
||||||
HttpStatus.NOT_FOUND, "Cette cellule de section n'existe pas");
|
HttpStatus.NOT_FOUND, "Cette cellule de section n'existe pas");
|
||||||
}
|
}
|
||||||
if (!utilsService.isAllowedToCheckProject(mail, this.sectionCellService.getProjectId(sectionCellId))) {
|
if (!utilsService.isAllowedToCheckProject(
|
||||||
|
mail, this.sectionCellService.getProjectId(sectionCellId))) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"User {} tried to edit section cells {} of the project {} but is not allowed to.",
|
"User {} tried to edit section cells {} of the project {} but is not allowed to.",
|
||||||
mail,
|
mail,
|
||||||
@ -68,7 +67,8 @@ public class EntrepreneurApiService {
|
|||||||
throw new ResponseStatusException(
|
throw new ResponseStatusException(
|
||||||
HttpStatus.NOT_FOUND, "Cette cellule de section n'existe pas");
|
HttpStatus.NOT_FOUND, "Cette cellule de section n'existe pas");
|
||||||
}
|
}
|
||||||
if (!utilsService.isAllowedToCheckProject(mail, this.sectionCellService.getProjectId(sectionCellId))) {
|
if (!utilsService.isAllowedToCheckProject(
|
||||||
|
mail, this.sectionCellService.getProjectId(sectionCellId))) {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"User {} tried to remove section cells {} of the project {} but is not allowed to.",
|
"User {} tried to remove section cells {} of the project {} but is not allowed to.",
|
||||||
mail,
|
mail,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user