diff --git a/server.py b/server.py
index 4f6b2f6c2e04caeb8cb1e8d1ef0b3ae518046ee1..783c2f14eb188a707b94b77de2d9227b11573757 100644
--- a/server.py
+++ b/server.py
@@ -399,7 +399,7 @@ def auth(): # For use with nginx auth_request
 		return "OK", 200
 	if url.startswith('pub/hls/'):
 		handle = url[len('pub/hls/'):].split('_')[0].split('.')[0]
-		if handle.startswith('l_'):
+		if handle.isdigit():
 			perms = query('''SELECT lectures.id AS lecture, perm.*
 					FROM lectures
 					JOIN courses ON (lectures.course_id = courses.id)