github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/user/user-type.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package user
     4  
     5  import "../protocol"
     6  
     7  // CheckUserType check and return error if user not exist in base users
     8  func CheckUserType(baseUsers, user protocol.UserType) (exist bool) {
     9  	return user&baseUsers == user
    10  	// err = ErrUserNotAllow
    11  }