Author: sevein
Date: Tue Jul 3 14:18:53 2012
New Revision: 11842
Log:
Hide accession numbers from public, issue 2313
Modified:
trunk/apps/qubit/modules/informationobject/actions/accessionsComponent.class.php
Modified:
trunk/apps/qubit/modules/informationobject/actions/accessionsComponent.class.php
==============================================================================
---
trunk/apps/qubit/modules/informationobject/actions/accessionsComponent.class.php
Tue Jul 3 14:13:17 2012 (r11841)
+++
trunk/apps/qubit/modules/informationobject/actions/accessionsComponent.class.php
Tue Jul 3 14:18:53 2012 (r11842)
@@ -21,6 +21,11 @@
{
public function execute($request)
{
+ if (!$this->getUser()->isAuthenticated())
+ {
+ return sfView::NONE;
+ }
+
$this->accessions =
QubitRelation::getRelationsBySubjectId($this->resource->id, array('typeId' =>
QubitTerm::ACCESSION_ID));
}
}
--
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.