lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ac2/workflow WorkflowAuthorizer.java
Date Fri, 15 Aug 2003 13:10:19 GMT
andreas     2003/08/15 06:10:19

  Modified:    src/java/org/apache/lenya/cms/ac2/workflow
                        WorkflowAuthorizer.java
  Log:
  using WorkflowFactory to obtain roles from request
  
  Revision  Changes    Path
  1.17      +2 -5      cocoon-lenya/src/java/org/apache/lenya/cms/ac2/workflow/WorkflowAuthorizer.java
  
  Index: WorkflowAuthorizer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ac2/workflow/WorkflowAuthorizer.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- WorkflowAuthorizer.java	5 Aug 2003 16:26:01 -0000	1.16
  +++ WorkflowAuthorizer.java	15 Aug 2003 13:10:19 -0000	1.17
  @@ -63,9 +63,7 @@
   import org.apache.excalibur.source.SourceResolver;
   
   import org.apache.lenya.cms.ac.AccessControlException;
  -import org.apache.lenya.cms.ac.Role;
   import org.apache.lenya.cms.ac2.Authorizer;
  -import org.apache.lenya.cms.ac2.PolicyAuthorizer;
   import org.apache.lenya.cms.publication.DefaultDocumentBuilder;
   import org.apache.lenya.cms.publication.Document;
   import org.apache.lenya.cms.publication.Publication;
  @@ -104,7 +102,6 @@
   
           String url = requestUri.substring(context.length());
   
  -        Role[] roles = PolicyAuthorizer.getRoles(request);
           String event = request.getParameter(EVENT_PARAMETER);
           SourceResolver resolver = null;
   
  @@ -124,7 +121,7 @@
   
                           authorized = false;
   
  -                        Situation situation = factory.buildSituation(roles);
  +                        Situation situation = factory.buildSituation(request);
                           Event[] events = instance.getExecutableEvents(situation);
                           int i = 0;
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message