MCPcopy Create free account
hub / github.com/Creatly/creatly-backend / IsModuleAvailable

Method IsModuleAvailable

internal/domain/student.go:25–33  ·  view source on GitHub ↗
(m Module)

Source from the content-addressed store, hash-verified

23}
24
25func (s Student) IsModuleAvailable(m Module) bool {
26 for _, id := range s.AvailableModules {
27 if m.ID == id {
28 return true
29 }
30 }
31
32 return false
33}
34
35type Verification struct {
36 Code string `json:"code" bson:"code"`

Callers 2

GetModuleContentMethod · 0.80
isLessonAvailableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected