Skip to content

Commit

Permalink
Fix ControllerEnhancer regression
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebort committed Apr 3, 2011
1 parent 8a0d412 commit 82ed6fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -97,7 +97,7 @@ public void edit(FieldAccess fieldAccess) throws CannotCompileException {
} else {

// Auto redirect -->
if (Modifier.isPublic(ctMethod.getModifiers()) && !isHandler) {
if (Modifier.isPublic(ctMethod.getModifiers()) && Modifier.isStatic(ctMethod.getModifiers()) && ctMethod.getReturnType().equals(CtClass.voidType) && !isHandler) {
try {
ctMethod.insertBefore(
"if(!play.classloading.enhancers.ControllersEnhancer.ControllerInstrumentation.isActionCallAllowed()) {"
Expand Down
1 change: 0 additions & 1 deletion framework/src/play/db/jpa/GenericModel.java
Expand Up @@ -31,7 +31,6 @@
import javax.persistence.PostLoad;
import javax.persistence.PostPersist;
import javax.persistence.PostUpdate;
import play.Logger;
import play.utils.Utils;

/**
Expand Down

0 comments on commit 82ed6fa

Please sign in to comment.