Author: david
Date: Wed Nov 3 13:22:05 2010
New Revision: 8767
Log:
Hide physical object location from unauthenticated users. Fixes issue #1328.
Modified:
trunk/apps/qubit/modules/physicalobject/templates/_contextMenu.php
Modified: trunk/apps/qubit/modules/physicalobject/templates/_contextMenu.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/_contextMenu.php Wed Nov
3 05:50:21 2010 (r8766)
+++ trunk/apps/qubit/modules/physicalobject/templates/_contextMenu.php Wed Nov
3 13:22:05 2010 (r8767)
@@ -11,7 +11,7 @@
<?php echo link_to_if(QubitAcl::check($resource, 'update'),
render_title($item), array($item, 'module' => 'physicalobject')) ?>
- <?php if (isset($item->location)): ?>
+ <?php if (isset($item->location) && $sf_user->isAuthenticated()): ?>
- <?php echo $item->getLocation(array('cultureFallback' =>
'true')) ?>
<?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.