diff --git a/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java b/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java index 1fe7492..4c470ed 100644 --- a/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java +++ b/backend/src/main/java/com/edufocus/edufocus/video/controller/Controller.java @@ -98,7 +98,7 @@ public class Controller { - if(findUser.getRole()==UserRole.ADMIN && lecture.isOnline() ) { + if(findUser.getRole()==UserRole.ADMIN ){//&& lecture.isOnline() ) { @@ -117,7 +117,7 @@ public class Controller { return ResponseEntity.ok(Map.of("token", token.toJwt())); } - else if(findUser.getRole()==UserRole.STUDENT && lecture.isOnline() ) + else if(findUser.getRole()==UserRole.STUDENT )// && lecture.isOnline() ) {