Author: sevein
Date: Thu May 17 14:49:42 2012
New Revision: 11684

Log:
Allow translators to edit ISAAR records, fixes issue 2337.

Modified:
   trunk/apps/qubit/modules/actor/actions/editAction.class.php
   trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php

Modified: trunk/apps/qubit/modules/actor/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/actor/actions/editAction.class.php Thu May 17 
00:02:59 2012        (r11683)
+++ trunk/apps/qubit/modules/actor/actions/editAction.class.php Thu May 17 
14:49:42 2012        (r11684)
@@ -49,7 +49,7 @@
       }
 
       // Check user authorization
-      if (!QubitAcl::check($this->resource, 'update'))
+      if (!QubitAcl::check($this->resource, 'update') && 
!QubitAcl::check($this->resource, 'translate'))
       {
         QubitAcl::forwardUnauthorized();
       }

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php    
    Thu May 17 00:02:59 2012        (r11683)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php    
    Thu May 17 14:49:42 2012        (r11684)
@@ -163,7 +163,7 @@
     <div class="content">
       <ul class="clearfix links">
 
-        <?php if (QubitAcl::check($resource, 'update')): ?>
+        <?php if (QubitAcl::check($resource, 'update') || 
(QubitAcl::check($resource, 'translate'))): ?>
           <li><?php echo link_to(__('Edit'), array($resource, 'module' => 
'actor', 'action' => 'edit'), array('title' => __('Edit'))) ?></li>
         <?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.com/group/qubit-commits?hl=en.

Reply via email to