Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r217 - registry/trunk/app/Controller

Subject: COmanage Developers List

List archive

[comanage-dev] r217 - registry/trunk/app/Controller


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r217 - registry/trunk/app/Controller
  • Date: Wed, 8 Feb 2012 20:31:16 -0500

Author: benno
Date: 2012-02-08 20:31:16 -0500 (Wed, 08 Feb 2012)
New Revision: 217

Modified:
registry/trunk/app/Controller/AppController.php
Log:
Better checking for home.ctp permissions

Modified: registry/trunk/app/Controller/AppController.php
===================================================================
--- registry/trunk/app/Controller/AppController.php 2012-02-09 01:27:09
UTC (rev 216)
+++ registry/trunk/app/Controller/AppController.php 2012-02-09 01:31:16
UTC (rev 217)
@@ -144,9 +144,12 @@
$this->Security->csrfCheck = false;
}

- if($this->name == 'Pages' && (!$this->Session->check('Auth.User'))) {
+ if($this->name == 'Pages'
+ && $this->request->params['pass'][0] == 'home'
+ && (!$this->Session->check('Auth.User'))) {
// Allow the front page to render without authentication. If there is
an
// authenticated user, we want Auth to run to set up authorizations.
+
$this->Auth->allow('*');
}
}



  • [comanage-dev] r217 - registry/trunk/app/Controller, svnlog, 02/08/2012

Archive powered by MHonArc 2.6.16.

Top of Page