Files
tecamino-dbm/models/rights.go
Adrian Zuercher 3d1dee25f1 first commit
2025-04-14 18:03:14 +02:00

19 lines
249 B
Go

package models
type Rights string
const (
Read Rights = "R"
Write Rights = "W"
ReadWrite Rights = "RW"
)
func (r *Rights) GetRights() Rights {
if r == nil {
return ReadWrite
} else if *r == "" {
return ReadWrite
}
return *r
}