summaryrefslogtreecommitdiff
path: root/src/Middleware
diff options
context:
space:
mode:
Diffstat (limited to 'src/Middleware')
-rw-r--r--src/Middleware/ScormPlayerAuthMiddleware.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Middleware/ScormPlayerAuthMiddleware.php b/src/Middleware/ScormPlayerAuthMiddleware.php
index 8044821..0444f09 100644
--- a/src/Middleware/ScormPlayerAuthMiddleware.php
+++ b/src/Middleware/ScormPlayerAuthMiddleware.php
@@ -14,7 +14,7 @@ use Illuminate\Http\Response;
use Illuminate\Support\Facades\Cache;
-class ScormPlayerAuthMiddleware
+abstract class ScormPlayerAuthMiddleware
{
private $cacheTimeout;
@@ -84,8 +84,5 @@ class ScormPlayerAuthMiddleware
throw new \Exception('Failed to find module from route');
}
- protected function authorize(Request $req, Scorm $module) : bool
- {
- return false;
- }
+ abstract protected function authorize(Request $req, Scorm $module) : bool;
}