func (a Access) Validate() error {
	switch a {
	case NoAccess, AdminAccess, ReadAccess, WriteAccess,
		LoginAccess, AddModelAccess, SuperuserAccess:
		return nil
	}
	return errors.NotValidf("access level %s", a)
}
// Validate returns error if the current is not a valid access level.
Validate returns error if the current is not a valid access level.
// Validate returns error if the current is not a valid access level .
func (a Access) Validate() error {
	switch a {
	case NoAccess, AdminAccess, ReadAccess, WriteAccess,
		LoginAccess, AddModelAccess, SuperuserAccess:
		return nil
	}
	return errors.NotValidf("access level %s", a)
}
func ( a Access ) Validate ( ) error { switch a { case NoAccess , AdminAccess , ReadAccess , WriteAccess , LoginAccess , AddModelAccess , SuperuserAccess : return nil } return errors . NotValidf ( " " , a ) }
Validate returns error if the current is not a valid access level.
Validate returns error if the current is not a valid access level .