Author: bshaffer
Date: 2010-02-08 20:54:57 +0100 (Mon, 08 Feb 2010)
New Revision: 27754

Modified:
   
plugins/csSecurityTaskExtraPlugin/branches/1.3/lib/task/sfAppGroupSecurityTask.class.php
Log:
tweak of layout for group testing - removes distracting "Info" message at the 
head of each group

Modified: 
plugins/csSecurityTaskExtraPlugin/branches/1.3/lib/task/sfAppGroupSecurityTask.class.php
===================================================================
--- 
plugins/csSecurityTaskExtraPlugin/branches/1.3/lib/task/sfAppGroupSecurityTask.class.php
    2010-02-08 19:24:39 UTC (rev 27753)
+++ 
plugins/csSecurityTaskExtraPlugin/branches/1.3/lib/task/sfAppGroupSecurityTask.class.php
    2010-02-08 19:54:57 UTC (rev 27754)
@@ -52,6 +52,8 @@
       throw new InvalidArgumentException($arguments['group'] ? "Group 
$arguments[group] not found":"No groups found in database");
     }
 
+    $this->logSection('app', sprintf('Current group security for application 
"%s"', $arguments['application']) . ($arguments['group'] ? sprintf(' and group 
"%s"', $arguments['group']) : ''));
+
     $security = $this->getSecurityArray();
 
     $groupAccess = array();
@@ -96,8 +98,7 @@
 
     foreach ($groupAccess as $group => $security)
     {
-      $count = 0;
-      $this->logSection('app', sprintf('Current security for application "%s" 
and group "%s"', $arguments['application'], $group));      
+      $count = 0;  
       foreach ($security as $i => $item) 
       {
         $this->log(sprintf($item['has_access'] ? $formatRow1:$formatRow2, 
$this->formatter->format($count == 0 ? $group : '',$this->labelFormat), 
$item['module'], $item['action'], $item['has_access_string'], 
$item['credential_string']));

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to