package query import ( "github.com/photoprism/photoprism/internal/entity" ) // RegisteredUsers finds all registered users. func RegisteredUsers() (result entity.Users) { if err := Db().Where("id > 0").Find(&result).Error; err != nil { log.Errorf("users: %s", err) } return result }