You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Kurt Schrader <ks...@engin.umich.edu> on 2001/05/10 18:15:52 UTC

[PATCH] FluxIndex.java

Small patch to Flux, was using hardcoded values.

Index: FluxIndex.java
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-flux/src/java/org/apache/turbine/flux/modules/screens/FluxIndex.java,v
retrieving revision 1.2
diff -u -r1.2 FluxIndex.java
--- FluxIndex.java	2001/04/15 20:29:23	1.2
+++ FluxIndex.java	2001/05/10 15:41:47
@@ -63,7 +63,7 @@
 import org.apache.turbine.util.security.AccessControlList;

 /**
- * Base screen for secure web acces to the storage side of Tambora.
+ * Base screen for secure web access to the storage side of Tambora.
  *
  * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  */
@@ -113,7 +113,7 @@

         AccessControlList acl = data.getACL();

-        if (acl==null || ! acl.hasRole("turbine_root"))
+        if (acl==null || ! acl.hasRole(fluxAdminRole))
         {
             data.getTemplateInfo().setScreenTemplate(
                 TurbineResources.getString("template.login"));
@@ -121,7 +121,7 @@
             data.setScreen(TurbineResources.getString("screen.login"));
             isAuthorized = false;
         }
-        else if(acl.hasRole("turbine_root"))
+        else if(acl.hasRole(fluxAdminRole))
         {
             isAuthorized = true;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org


Re: [PATCH] FluxIndex.java

Posted by Jason van Zyl <jv...@apache.org>.
Kurt Schrader wrote:
> 
> Small patch to Flux, was using hardcoded values.

Done. Thanks.

> 
> Index: FluxIndex.java
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-turbine-flux/src/java/org/apache/turbine/flux/modules/screens/FluxIndex.java,v
> retrieving revision 1.2
> diff -u -r1.2 FluxIndex.java
> --- FluxIndex.java      2001/04/15 20:29:23     1.2
> +++ FluxIndex.java      2001/05/10 15:41:47
> @@ -63,7 +63,7 @@
>  import org.apache.turbine.util.security.AccessControlList;
> 
>  /**
> - * Base screen for secure web acces to the storage side of Tambora.
> + * Base screen for secure web access to the storage side of Tambora.
>   *
>   * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
>   */
> @@ -113,7 +113,7 @@
> 
>          AccessControlList acl = data.getACL();
> 
> -        if (acl==null || ! acl.hasRole("turbine_root"))
> +        if (acl==null || ! acl.hasRole(fluxAdminRole))
>          {
>              data.getTemplateInfo().setScreenTemplate(
>                  TurbineResources.getString("template.login"));
> @@ -121,7 +121,7 @@
>              data.setScreen(TurbineResources.getString("screen.login"));
>              isAuthorized = false;
>          }
> -        else if(acl.hasRole("turbine_root"))
> +        else if(acl.hasRole(fluxAdminRole))
>          {
>              isAuthorized = true;
>          }
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://jakarta.apache.org/commons
http://tambora.zenplex.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org