Author: david
Date: Wed Sep 16 16:02:45 2009
New Revision: 3356
Log:
Use ACL authorization test for displaying user actions buttons.
Modified:
trunk/apps/qubit/modules/user/templates/showSuccess.php
Modified: trunk/apps/qubit/modules/user/templates/showSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/showSuccess.php Wed Sep 16
16:01:56 2009 (r3355)
+++ trunk/apps/qubit/modules/user/templates/showSuccess.php Wed Sep 16
16:02:45 2009 (r3356)
@@ -40,14 +40,14 @@
<div id="button-block-bump"></div>
<ul class="actions">
- <?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user',
'action' => 'edit'))): ?>
+ <?php if (QubitAcl::check($user, QubitAclAction::CREATE_ID)): ?>
<li><?php echo link_to (__('Add'), array('module' => 'user', 'action' =>
'create')) ?></li>
<?php endif; ?>
- <?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user',
'action' => 'delete'))): ?>
+ <?php if (QubitAcl::check($user, QubitAclAction::DELETE_ID)): ?>
<li><?php echo link_to (__('Delete'), array('module' => 'user', 'action'
=> 'delete', 'id' => $user->id),
array('post' => true, 'confirm' => 'are you sure?')) ?></li>
<?php endif; ?>
- <?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user',
'action' => 'edit'))): ?>
+ <?php if (QubitAcl::check($user, QubitAclAction::UPDATE_ID)): ?>
<li><?php echo link_to (__('Edit'), array('module' => 'user', 'action' =>
'edit', 'id' => $user->id)) ?></li>
<?php endif; ?>
-</ul>
\ No newline at end of file
+</ul>
--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---