Author: david
Date: Thu Jun 16 16:20:29 2011
New Revision: 9165
Log:
Use QubitAcl for authorization
Modified:
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
Modified:
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
==============================================================================
---
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
Thu Jun 16 00:03:00 2011 (r9164)
+++
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
Thu Jun 16 16:20:29 2011 (r9165)
@@ -129,16 +129,22 @@
<?php echo render_show(__('Maintenance notes'),
render_value($isdiah->maintenanceNotes)) ?>
-<?php if (SecurityPriviliges::editCredentials($sf_user, 'repository')): ?>
+<?php if (QubitAcl::check($resource, array('update', 'delete', 'create'))): ?>
<div class="actions section">
<h2 class="element-invisible"><?php echo __('Actions') ?></h2>
<div class="content">
<ul class="clearfix links">
+ <?php if (QubitAcl::check($resource, 'update')): ?>
<li><?php echo link_to(__('Edit'), array($resource, 'module' =>
'repository', 'action' => 'edit'), array('title' => __('Edit'))) ?></li>
+ <?php endif; ?>
+ <?php if (QubitAcl::check($resource, 'delete')): ?>
<li><?php echo link_to(__('Delete'), array($resource, 'module' =>
'repository', 'action' => 'delete'), array('title' => __('Delete'))) ?></li>
+ <?php endif; ?>
+ <?php if (QubitAcl::check($resource, 'create')): ?>
<li><?php echo link_to(__('Add new'), array('module' => 'repository',
'action' => 'add'), array('title' => __('Add new'))) ?></li>
+ <?php endif; ?>
</ul>
</div>
--
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.