Files
snipe-it/app/controllers/AuthorizedController.php
T
Tamás Roncsák c2a1e39b54 set filemode
2015-02-24 09:29:58 +01:00

27 lines
443 B
PHP

<?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();
}
}