Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authormorgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-05 21:45:41 (GMT)
committer morgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-05 21:45:41 (GMT)
commit2ff572f519a6408a3c2049a9beec0beb80d8b3b2 (patch)
treeb9e442e0807d5426a23805480bf5cee8f86cc970 /site/app/app_controller.php
parent5976c80fc9b3cf3742ac09a294691953f4fdd2ad (diff)
Fixed update tests to work of test db data instead of hard-coded strings. Fixed use of assertWantedPattern -- was already fetching XML manually. Replaced with assertPattern. Removed references to db_acl component, since we're not going that route.
git-svn-id: http://svn.mozilla.org/addons/trunk@1802 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 88a690a..2661ab1 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -38,7 +38,7 @@
class AppController extends Controller
{
- var $components = array('Acl', 'Amo');
+ var $components = array('Amo');
var $view = 'Addons';
// allow named arguments, default off
var $namedArgs = false;
@@ -113,23 +113,6 @@ class AppController extends Controller
return $ret;
}
- function checkAccess($aco)
- {
- // Check access using the component:
- $access = $this->Acl->check($this->Session->read('user_alias'), $aco, $action = "*");
-
- //access denied
- if ($access === false)
- {
- $this->flash('No access');
- }
- //access allowed
- else
- {
- $this->flash('Access granted');
- }
- }
-
/**
* A callback function to populate the namedArgs array if activated
* This should be triggered in the beforeFilter