Preparing a SetupController

This commit is contained in:
James Brooks
2014-11-23 21:34:31 +00:00
parent 8d4bf3f5ea
commit e5a70aef0b
7 changed files with 99 additions and 81 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
class NoSetupFilter {
public function filter($route, $request, $settingName) {
$setting = Setting::get($settingName);
if ($setting === null) {
return Response::make('Unauthorized', 401);
}
}
}