Files
snipe-it/app/controllers/AuthorizedController.php
T
2014-06-24 17:49:39 -04:00

27 lines
443 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();
}
}