Skip to content

Commit

Permalink
fix #713 modify an order of vaeifyToken
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Sep 29, 2016
1 parent a17c41c commit f749164
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ public HtmlResponse update(final EditForm form) {
@Execute
public HtmlResponse delete(final EditForm form) {
verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId);
verifyToken(() -> asDetailsHtml());
validate(form, messages -> {}, () -> asDetailsHtml());
verifyToken(() -> asDetailsHtml());
kuromojiService
.getKuromojiItem(form.dictId, form.id)
.ifPresent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ public HtmlResponse update(final EditForm form) {
@Execute
public HtmlResponse delete(final EditForm form) {
verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId);
verifyToken(() -> asDetailsHtml());
validate(form, messages -> {}, () -> asDetailsHtml());
verifyToken(() -> asDetailsHtml());
charMappingService
.getCharMappingItem(form.dictId, form.id)
.ifPresent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ public HtmlResponse update(final EditForm form) {
@Execute
public HtmlResponse delete(final EditForm form) {
verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId);
verifyToken(() -> asDetailsHtml());
validate(form, messages -> {}, () -> asDetailsHtml());
verifyToken(() -> asDetailsHtml());
protwordsService
.getProtwordsItem(form.dictId, form.id)
.ifPresent(entity -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ public HtmlResponse update(final EditForm form) {
@Execute
public HtmlResponse delete(final EditForm form) {
verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId);
verifyToken(() -> asDetailsHtml());
validate(form, messages -> {}, () -> asDetailsHtml());
verifyToken(() -> asDetailsHtml());
seunjeonService
.getSeunjeonItem(form.dictId, form.id)
.ifPresent(entity -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ public HtmlResponse update(final EditForm form) {
@Execute
public HtmlResponse delete(final EditForm form) {
verifyCrudMode(form.crudMode, CrudMode.DETAILS, form.dictId);
verifyToken(() -> asDetailsHtml());
validate(form, messages -> {}, () -> asDetailsHtml());
verifyToken(() -> asDetailsHtml());
synonymService
.getSynonymItem(form.dictId, form.id)
.ifPresent(
Expand Down

0 comments on commit f749164

Please # to comment.