Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange code investigate .. potentially allows to render data provider user has no access to #28

Open
MontrealSergiy opened this issue Nov 7, 2024 · 0 comments

Comments

@MontrealSergiy
Copy link
Owner

Showing /home/users/sboroday/cbrain/BrainPortal/app/views/shared/_show_table.html.erb where line #27 raised:

The single-table inheritance mechanism failed to locate the subclass: 'DataladDataProvider'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite DataProvider.inheritance_column to use another column for that information.
Extracted source (around line aces#192):
190
191
192
193
194
195

end
data_providers = options[:data_providers] || DataProvider.find_all_accessible_by_user(current_user)
data_providers = data_providers.all.to_a if data_providers.is_a?(ActiveRecord::Relation)

if selector.respond_to?(:data_provider_id)
  selected = selector.data_provider_id.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant