Author: david
Date: Wed Sep 30 13:55:47 2009
New Revision: 3616
Log:
Test for admin credentials for *all* user actions.
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 30
13:47:15 2009 (r3615)
+++ trunk/apps/qubit/modules/user/templates/showSuccess.php Wed Sep 30
13:55:47 2009 (r3616)
@@ -52,18 +52,15 @@
<!-- include empty div at bottom of form to bump the fixed button-block and
allow user to scroll past it -->
<div id="button-block-bump"></div>
+<?php if ($sf_user->hasCredential('administrator')): ?>
<ul class="actions">
- <?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; ?>
- <?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; ?>
- <br /><div class="menu-extra">
- <?php if (QubitAcl::check($user, QubitAclAction::CREATE_ID)): ?>
+ <li><?php echo link_to (__('Edit'), array('module' => 'user', 'action' =>
'edit', 'id' => $user->id)) ?></li>
+ <li><?php echo link_to (__('Delete'), array('module' => 'user', 'action' =>
'delete', 'id' => $user->id), array('post' => true, 'confirm' => 'are you
sure?')) ?></li>
+ <br />
+
+ <div class="menu-extra">
<li><?php echo link_to (__('Add new'), array('module' => 'user', 'action'
=> 'create')) ?></li>
- <?php endif; ?>
- <li><?php echo link_to(__('List all'), array('module' => 'user', 'action' =>
'list')) ?></li>
+ <li><?php echo link_to(__('List all'), array('module' => 'user', 'action'
=> 'list')) ?></li>
</div>
</ul>
+<?php endif; ?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---