Author: sevein
Date: Wed Oct 27 07:10:21 2010
New Revision: 8543

Log:
Replace $user with $resource.

Modified:
   trunk/apps/qubit/modules/user/templates/_showActions.php
   trunk/apps/qubit/modules/user/templates/indexSuccess.php

Modified: trunk/apps/qubit/modules/user/templates/_showActions.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/_showActions.php    Wed Oct 27 
07:08:28 2010        (r8542)
+++ trunk/apps/qubit/modules/user/templates/_showActions.php    Wed Oct 27 
07:10:21 2010        (r8543)
@@ -5,15 +5,15 @@
   <div class="content">
     <ul class="clearfix links">
 
-      <?php if (QubitAcl::check($user, 'update')): ?>
-        <li><?php echo link_to (__('Edit'), array($user, 'module' => 'user', 
'action' => str_replace('index', 'edit', $sf_context->getActionName()))) ?></li>
+      <?php if (QubitAcl::check($resourcd, 'update')): ?>
+        <li><?php echo link_to (__('Edit'), array($resource, 'module' => 
'user', 'action' => str_replace('index', 'edit', 
$sf_context->getActionName()))) ?></li>
       <?php endif; ?>
 
-      <?php if (QubitAcl::check($user, 'delete')): ?>
-        <li><?php echo link_to (__('Delete'), array($user, 'module' => 'user', 
'action' => 'delete')) ?></li>
+      <?php if (QubitAcl::check($resource, 'delete')): ?>
+        <li><?php echo link_to (__('Delete'), array($resource, 'module' => 
'user', 'action' => 'delete')) ?></li>
       <?php endif; ?>
 
-      <?php if (QubitAcl::check($user, 'create')): ?>
+      <?php if (QubitAcl::check($resource, 'create')): ?>
         <li><?php echo link_to (__('Add new'), array('module' => 'user', 
'action' => 'add')) ?></li>
       <?php endif; ?>
 

Modified: trunk/apps/qubit/modules/user/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/indexSuccess.php    Wed Oct 27 
07:08:28 2010        (r8542)
+++ trunk/apps/qubit/modules/user/templates/indexSuccess.php    Wed Oct 27 
07:10:21 2010        (r8543)
@@ -40,4 +40,4 @@
 
 </div>
 
-<?php echo get_partial('showActions', array('user' => $resource)) ?>
+<?php echo get_partial('showActions', array('resource' => $resource)) ?>

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.

Reply via email to