func (b permissionBuilder) includedPermission(ctx Context, endpoint string) permissions.CodeSet {
	values, err := ctx.GetStringSlice(permissionIncludedKey)
	if err == nil {
		return mapStringToCodeSet(values)
	}

	defaultPerms, err := b.standardPermissions.defaultForEndpoint(endpoint)
	if err != nil {
		return permissions.NoCodeSet()
	}
	codes := []string{}
	for _, code := range defaultPerms {
		codes = append(codes, string(code))
	}
	return mapStringToCodeSet(codes)
}
// includedPermission returns the list of permission names that need to be included
// in the access token for this testcase. See permission model docs for more information
includedPermission returns the list of permission names that need to be included
in the access token for this testcase. See permission model docs for more information
// includedPermission returns the list of permission names that need to be included // in the access token for this testcase . See permission model docs for more information
func (b permissionBuilder) includedPermission(ctx Context, endpoint string) permissions.CodeSet {
	values, err := ctx.GetStringSlice(permissionIncludedKey)
	if err == nil {
		return mapStringToCodeSet(values)
	}
	defaultPerms, err := b.standardPermissions.defaultForEndpoint(endpoint)
	if err != nil {
		return permissions.NoCodeSet()
	}
	codes := []string{}
	for _, code := range defaultPerms {
		codes = append(codes, string(code))
	}
	return mapStringToCodeSet(codes)
}
func ( b permissionBuilder ) includedPermission ( ctx Context , endpoint string ) permissions . CodeSet { values , err := ctx . GetStringSlice ( permissionIncludedKey ) if err == nil { return mapStringToCodeSet ( values ) } defaultPerms , err := b . standardPermissions . defaultForEndpoint ( endpoint ) if err != nil { return permissions . NoCodeSet ( ) } codes := [ ] string { } for _ , code := range defaultPerms { codes = append ( codes , string ( code ) ) } return mapStringToCodeSet ( codes ) }
includedPermission returns the list of permission names that need to be included
in the access token for this testcase.
includedPermission returns the list of permission names that need to be included in the access token for this testcase .