From 753f2bb1022757a6372ef735261c2a8474db69b1 Mon Sep 17 00:00:00 2001 From: carlobortolan Date: Fri, 12 Jan 2024 14:15:41 +0100 Subject: [PATCH] Update dependencies --- api_v2/helpers/verification.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api_v2/helpers/verification.go b/api_v2/helpers/verification.go index ec4faaed6..e04d4b435 100644 --- a/api_v2/helpers/verification.go +++ b/api_v2/helpers/verification.go @@ -39,7 +39,7 @@ func CheckAuthorized(db *gorm.DB, uID uint, courseID uint) (*model.Course, error } func CheckCanChat(db *gorm.DB, uID uint, streamID uint) (*model.Stream, error) { - //in the future, we can add a check for the user's role in the course + // in the future, we can add a check for the user's role in the course stream, err := s.GetStreamById(db, streamID) if err != nil { @@ -51,7 +51,6 @@ func CheckCanChat(db *gorm.DB, uID uint, streamID uint) (*model.Stream, error) { } course, err := s.GetCourseById(db, stream.CourseID) - if err != nil { return nil, err }