Author: david
Date: Wed Sep 30 15:32:26 2009
New Revision: 3621
Log:
informationobject/show template title links to 'edit' action only if user has
'update' permission.
Modified:
trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
Modified:
trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
Wed Sep 30 15:29:46 2009 (r3620)
+++ trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
Wed Sep 30 15:32:26 2009 (r3621)
@@ -5,7 +5,11 @@
<tr>
<td colspan="2" class="headerCell">
- <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user,
'informationObject'), render_title(QubitIsad::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id), array('title' => __('Edit archival description'))) ?>
+ <?php if (QubitAcl::check($informationObject, QubitAclAction::UPDATE_ID)): ?>
+ <?php echo link_to(render_title(QubitIsad::getLabel($informationObject)),
array('module' => 'informationobject', 'action' => 'edit', 'id' =>
$informationObject->id), array('title' => __('Edit archival description'))) ?>
+ <?php else: ?>
+ <?php echo render_title(QubitIsad::getLabel($informationObject)) ?>
+ <?php endif; ?>
</td>
</tr>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---