Author: sevein
Date: Fri Oct 29 03:46:26 2010
New Revision: 8648
Log:
Avoid to check existence twice, it is handled in QubitResourceRoute class. Good
idea Jack! :-)
Modified:
trunk/apps/qubit/modules/user/actions/indexAction.class.php
trunk/apps/qubit/modules/user/actions/indexActorAclAction.class.php
trunk/apps/qubit/modules/user/actions/indexInformationObjectAclAction.class.php
trunk/apps/qubit/modules/user/actions/indexTermAclAction.class.php
Modified: trunk/apps/qubit/modules/user/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/user/actions/indexAction.class.php Fri Oct 29
03:33:36 2010 (r8647)
+++ trunk/apps/qubit/modules/user/actions/indexAction.class.php Fri Oct 29
03:46:26 2010 (r8648)
@@ -23,11 +23,6 @@
{
$this->resource = $this->getRoute()->resource;
- if (!isset($this->resource))
- {
- $this->forward404();
- }
-
// Except for administrators, only allow users to see their own profile
if (!$this->context->user->hasCredential('administrator'))
{
Modified: trunk/apps/qubit/modules/user/actions/indexActorAclAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/user/actions/indexActorAclAction.class.php Fri Oct
29 03:33:36 2010 (r8647)
+++ trunk/apps/qubit/modules/user/actions/indexActorAclAction.class.php Fri Oct
29 03:46:26 2010 (r8648)
@@ -22,10 +22,6 @@
public function execute($request)
{
$this->resource = $this->getRoute()->resource;
- if (!isset($this->resource))
- {
- $this->forward404();
- }
//except for administrators, only allow users to see their own profile
if (!$this->context->user->hasCredential('administrator'))
Modified:
trunk/apps/qubit/modules/user/actions/indexInformationObjectAclAction.class.php
==============================================================================
---
trunk/apps/qubit/modules/user/actions/indexInformationObjectAclAction.class.php
Fri Oct 29 03:33:36 2010 (r8647)
+++
trunk/apps/qubit/modules/user/actions/indexInformationObjectAclAction.class.php
Fri Oct 29 03:46:26 2010 (r8648)
@@ -22,10 +22,6 @@
public function execute($request)
{
$this->resource = $this->getRoute()->resource;
- if (!isset($this->resource))
- {
- $this->forward404();
- }
// Except for administrators, only allow users to see their own profile
if (!$this->context->user->hasCredential('administrator'))
Modified: trunk/apps/qubit/modules/user/actions/indexTermAclAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/user/actions/indexTermAclAction.class.php Fri Oct
29 03:33:36 2010 (r8647)
+++ trunk/apps/qubit/modules/user/actions/indexTermAclAction.class.php Fri Oct
29 03:46:26 2010 (r8648)
@@ -22,10 +22,6 @@
public function execute($request)
{
$this->resource = $this->getRoute()->resource;
- if (!isset($this->resource))
- {
- $this->forward404();
- }
// Except for administrators, only allow users to see their own profile
if (!$this->context->user->hasCredential('administrator'))
--
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.