func ValidateModelAccess(access Access) error {
	switch access {
	case ReadAccess, WriteAccess, AdminAccess:
		return nil
	}
	return errors.NotValidf("%q model access", access)
}
// ValidateModelAccess returns error if the passed access is not a valid
// model access level.
ValidateModelAccess returns error if the passed access is not a valid
model access level.
// ValidateModelAccess returns error if the passed access is not a valid // model access level .
func ValidateModelAccess(access Access) error {
	switch access {
	case ReadAccess, WriteAccess, AdminAccess:
		return nil
	}
	return errors.NotValidf("%q model access", access)
}
func ValidateModelAccess ( access Access ) error { switch access { case ReadAccess , WriteAccess , AdminAccess : return nil } return errors . NotValidf ( " " , access ) }
ValidateModelAccess returns error if the passed access is not a valid
model access level.
ValidateModelAccess returns error if the passed access is not a valid model access level .