We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4205213 commit 5651d9aCopy full SHA for 5651d9a
app/Http/Middleware/DaemonAuthenticate.php
@@ -37,6 +37,15 @@ class DaemonAuthenticate
37
*/
38
protected $auth;
39
40
+ /**
41
+ * An array of route names to not apply this middleware to.
42
+ *
43
+ * @var array
44
+ */
45
+ protected $except = [
46
+ 'daemon.configuration',
47
+ ];
48
+
49
/**
50
* Create a new filter instance.
51
*
@@ -57,6 +66,10 @@ public function __construct(Guard $auth)
57
66
58
67
public function handle($request, Closure $next)
59
68
{
69
+ if (in_array($request->route()->getName(), $this->except)) {
70
+ return $next($request);
71
+ }
72
60
73
if (! $request->header('X-Access-Node')) {
61
74
return abort(403);
62
75
}
0 commit comments