Closed MontrealSergiy closed 1 year ago
unittest fail
@prioux Do not you think Auto registration simplifies the process of registration for new users?
No auto registration. I want users to know what files they connect in CBRAIN.
all comments are covered
the patch is merged into the pr
At this point a condition in get_type_list method is redundant
--- a/BrainPortal/app/controllers/data_providers_controller.rb
+++ b/BrainPortal/app/controllers/data_providers_controller.rb
@@ -938,11 +938,8 @@ class DataProvidersController < ApplicationController
def get_type_list #:nodoc:
data_provider_list = [ "FlatDirSshDataProvider" ]
- if check_role(:site_manager) || check_role(:admin_user)
data_provider_list = DataProvider.descendants.map(&:name)
- data_provider_list.delete(UserkeyFlatDirSshDataProvider.name) # this type is for regular users
- # not for admins
- end
+ data_provider_list.delete(UserkeyFlatDirSshDataProvider.name) # this type only to be used with personal dp template
grouped_options = data_provider_list.to_a.hashed_partitions { |name| name.constantize.pretty_category_name }
grouped_options.delete(nil) # data providers that can not be on this list return a category name of nil, so we remove them
grouped_options.keys.sort.map { |type| [ type, grouped_options[type].sort ] }
also reformated the ssh key css class