portfolio/service/validate/validateUser.go

14 lines
169 B
Go
Raw Normal View History

2024-03-13 15:54:09 +01:00
package validate
import (
"portfolio/database/ent"
)
func UserIsValid(u *ent.User) bool {
if len(u.Name) > 0 &&
len(u.Role) > 0 {
return true
}
return false
}