Changeset 2267
- Timestamp:
- 01/15/08 14:05:53 (12 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
controller/AgaviExecutionContainer.class.php (modified) (1 diff)
-
filter/AgaviSecurityFilter.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/controller/AgaviExecutionContainer.class.php
r2259 r2267 325 325 if(AgaviConfig::get('core.available', false)) { 326 326 // the application is available so we'll register 327 // global and modulefilters, otherwise skip them327 // globally defined and module-specific action filters, otherwise skip them 328 328 329 329 // does this action require security? 330 if(AgaviConfig::get('core.use_security', false) && $this->actionInstance->isSecure()) {330 if(AgaviConfig::get('core.use_security', false)) { 331 331 // register security filter 332 332 $filterChain->register($controller->getFilter('security')); -
trunk/src/filter/AgaviSecurityFilter.class.php
r2259 r2267 59 59 $credential = $actionInstance->getCredentials(); 60 60 61 if(!$actionInstance->isSecure()) { 62 // the action instance does not require authentication, so we can continue in the chain and then bail out early 63 return $filterChain->execute($container); 64 } 65 61 66 // credentials can be anything you wish; a string, array, object, etc. 62 67 // as long as you add the same exact data to the user as a credential,

