Author: jablko
Date: Wed Sep 16 14:22:14 2009
New Revision: 3350
Log:
Use SecurityPriviliges::editCredentials() consistently
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 16 14:05:39 2009 (r3349)
+++ trunk/apps/qubit/modules/informationobject/templates/showIsadSuccess.php
Wed Sep 16 14:22:14 2009 (r3350)
@@ -38,7 +38,7 @@
|| 0 < strlen($informationObject->getExtentAndMedium(array('cultureFallback'
=> true)))): ?>
<tr id="identityArea"><td colspan="2" class="subHeaderCell">
<?php echo __('identity area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' => 'identityArea'))
?>
<?php endif; ?>
</td></tr>
@@ -99,7 +99,7 @@
|| 0 < strlen($informationObject->getAcquisition(array('cultureFallback' =>
true)))): ?>
<tr id="contextArea"><td colspan="2" class="subHeaderCell">
<?php echo __('context area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' => 'contextArea')) ?>
<?php endif; ?>
</td></tr>
@@ -161,7 +161,7 @@
|| 0 < strlen($informationObject->getArrangement(array('cultureFallback' =>
true)))): ?>
<tr id="contentAndStructureArea"><td colspan="2" class="subHeaderCell">
<?php echo __('content and structure area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' =>
'contentAndStructureArea')) ?>
<?php endif; ?>
</td></tr>
@@ -207,7 +207,7 @@
|| 0 < strlen($informationObject->getFindingAids(array('cultureFallback' =>
true)))): ?>
<tr id="conditionsOfAccessAndUseArea"><td colspan="2" class="subHeaderCell">
<?php echo __('conditions of access and use area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' =>
'conditionsOfAccessAndUseArea')) ?>
<?php endif; ?>
</td></tr>
@@ -279,7 +279,7 @@
|| 0 < count($publicationNotes)): ?>
<tr id="alliedMaterialsArea"><td colspan="2" class="subHeaderCell">
<?php echo __('allied materials area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' =>
'alliedMaterialsArea')) ?>
<?php endif; ?>
</td></tr>
@@ -323,7 +323,7 @@
<?php if (0 < count($notes)): ?>
<tr id="notesArea"><td colspan="2" class="subHeaderCell">
<?php echo __('notes area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' => 'notesArea')) ?>
<?php endif; ?>
</td></tr>
@@ -408,7 +408,7 @@
|| 0 < strlen($informationObject->getSources(array('cultureFallback' =>
true)))): ?>
<tr id="descriptionControlArea"><td colspan="2" class="subHeaderCell">
<?php echo __('description control area') ?>
- <?php if (SecurityCheck::hasPermission($sf_user, array('module' =>
'informationobject', 'action' => 'edit'))): ?>
+ <?php if (SecurityPriviliges::editCredentials($sf_user,
'informationObject')): ?>
<?php echo link_to('Edit', array('module' => 'informationobject', 'action'
=> 'edit', 'id' => $informationObject->id), array('anchor' =>
'descriptionControlArea')) ?>
<?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
-~----------~----~----~----~------~----~------~--~---