code: func CheckPrivilege(activeRoles []*auth.RoleIdentity, pm privilege.Manager, vs []visitInfo) error {
  	for _, v := range vs {
  		if !pm.RequestVerification(activeRoles, v.db, v.table, v.column, v.privilege) {
  			if v.err == nil {
  				return ErrPrivilegeCheckFail
  			}
  			return v.err
  		}
  	}
  	return nil
  }
docs: // CheckPrivilege checks the privilege for a user.