[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller DBController.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Thu May 6 12:14:42 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller
In directory jcorp2.servlets.net:/tmp/cvs-serv32673/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller

Modified Files:
	DBController.java 
Log Message:
admin is always allowed


Index: DBController.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/DBController.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** DBController.java	4 May 2004 04:55:57 -0000	1.27
--- DBController.java	6 May 2004 19:14:39 -0000	1.28
***************
*** 297,305 ****
          if (controller == null) return false;
  
-         String controllerClassName = controller.getClass().getName();
-         //This gets filled with any group names that weren't in the cache
-         //
-         String missingGroupNames[] = null;
- 
          //Grab the user
          User thisUser = new User();
--- 297,300 ----
***************
*** 307,310 ****
--- 302,314 ----
          thisUser.setUid(request.getUid());
          thisUser.retrieve();
+ 
+         // admin is always allowed
+         if ( thisUser.isAdmin() ) return true;
+ 
+         String controllerClassName = controller.getClass().getName();
+         //This gets filled with any group names that weren't in the cache
+         //
+         String missingGroupNames[] = null;
+ 
  
          //Group the user's groups



More information about the cvs mailing list