func (s *displayService) ListManageableUserPluginRoles(
	ctx context.Context,
	pluginId string,
	userId string,
) (roles []v1alpha1.PluginRole, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListManageableUserPluginRoles(
		ctx,
		&v1alpha1.ListManageableUserPluginRolesRequest{
			PluginId: pluginId,
			UserId:   userId,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.Roles, nil
}
// ListManageableUserPluginRoles returns which roles should be displayed
// to the user when they are managing a specific contributor on the plugin.
ListManageableUserPluginRoles returns which roles should be displayed
to the user when they are managing a specific contributor on the plugin.
// ListManageableUserPluginRoles returns which roles should be displayed // to the user when they are managing a specific contributor on the plugin .
func (s *displayService) ListManageableUserPluginRoles(
	ctx context.Context,
	pluginId string,
	userId string,
) (roles []v1alpha1.PluginRole, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.ListManageableUserPluginRoles(
		ctx,
		&v1alpha1.ListManageableUserPluginRolesRequest{
			PluginId: pluginId,
			UserId:   userId,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.Roles, nil
}
func ( s * displayService ) ListManageableUserPluginRoles ( ctx context . Context , pluginId string , userId string , ) ( roles [ ] v1alpha1 . PluginRole , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . ListManageableUserPluginRoles ( ctx , & v1alpha1 . ListManageableUserPluginRolesRequest { PluginId : pluginId , UserId : userId , } , ) if err != nil { return nil , err } return response . Roles , nil }
ListManageableUserPluginRoles returns which roles should be displayed
to the user when they are managing a specific contributor on the plugin.
ListManageableUserPluginRoles returns which roles should be displayed to the user when they are managing a specific contributor on the plugin .