Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobortolan committed Jan 12, 2024
1 parent 0c1ef68 commit 753f2bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api_v2/helpers/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down

0 comments on commit 753f2bb

Please sign in to comment.