// Code generated by summer make. DO NOT EDIT. package controllers import ( "git.golem15.com/golem15/sm-quizzes-plugin/models" "git.golem15.com/golem15/summercms/modules/pact" ) var ( _ pact.AdminController = attemptsAdmin{} _ pact.AdminRecordSource = attemptsAdmin{} _ pact.AdminPermissioned = attemptsAdmin{} ) // attemptsAdmin is a read-only list of attempts: it has no form, so the // admin API refuses every create, update and delete. type attemptsAdmin struct{} func (attemptsAdmin) ID() string { return "golem15.quizzes.attempts" } func (attemptsAdmin) ModelName() string { return "Attempt" } func (attemptsAdmin) ConfigDir() string { return "controllers/attempts" } // NewRecord returns the model the generic admin handlers query. func (attemptsAdmin) NewRecord() any { return &models.Attempt{} } // RequiredPermissions is checked before any schema or record is served. func (attemptsAdmin) RequiredPermissions() []string { return []string{"golem15.quizzes.access_attempts"} } // AttemptsController returns the golem15.quizzes.attempts admin controller. func AttemptsController() pact.AdminController { return attemptsAdmin{} }