shuber      2004/09/23 18:57:47 CEST

  Modified files:
    core/src/java/org/jahia/data/fields JahiaPageField.java 
  Log:
  Added login and logout engine in list of engines that should not see protected pages 
that are linked to.
  
  Revision  Changes    Path
  1.4       +9 -2      jahia/core/src/java/org/jahia/data/fields/JahiaPageField.java
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/java/org/jahia/data/fields/JahiaPageField.java.diff?r1=1.3&r2=1.4&f=h
  
  
  
  Index: JahiaPageField.java
  ===================================================================
  RCS file: /cvs/jahia/core/src/java/org/jahia/data/fields/JahiaPageField.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JahiaPageField.java       9 Sep 2004 10:21:48 -0000       1.3
  +++ JahiaPageField.java       23 Sep 2004 16:57:47 -0000      1.4
  @@ -29,6 +29,8 @@
   import org.jahia.services.workflow.WorkflowService;
   import org.jahia.services.workflow.WorkflowEvent;
   import org.jahia.utils.JahiaConsole;
  +import org.jahia.engines.login.Login_Engine;
  +import org.jahia.engines.logout.Logout_Engine;
   
   public class JahiaPageField extends JahiaField
   {
  @@ -205,13 +207,18 @@
                                       }
                                   }
                               } else {
  -                                if ((jParams != null) && 
(jParams.getEngine().equals(ParamBean.CORE_ENGINE_NAME))) {
  +                                if (jParams != null) {
  +                                    if 
(jParams.getEngine().equals(ParamBean.CORE_ENGINE_NAME) ||
  +                                        
jParams.getEngine().equals(Login_Engine.ENGINE_NAME) ||
  +                                        
jParams.getEngine().equals(Logout_Engine.ENGINE_NAME)) {
                                       this.setObject (null);
  -                                    if 
(this.getValue().toUpperCase().indexOf("JAHIA_LINKONLY") == -1) {
  +                                        if (this.getValue().toUpperCase().
  +                                            indexOf("JAHIA_LINKONLY") == -1) {
                                           this.setValue ("");
                                       }
                                   }
                               }
  +                            }
   
                               break;
                           }
  

Reply via email to