Files
snipe-it/app/controllers/AuthorizedController.php
T
2013-11-13 01:59:39 -05:00

27 lines
378 B
PHP
Executable File

<?php
class AuthorizedController extends BaseController {
/**
* Whitelisted auth routes.
*
* @var array
*/
protected $whitelist = array();
/**
* Initializer.
*
* @return void
*/
public function __construct()
{
// Apply the auth filter
$this->beforeFilter('auth', array('except' => $this->whitelist));
// Call parent
parent::__construct();
}
}