Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BrainPortal/app/models/userfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ def track_resource_usage_destroy #:nodoc:
# used by two entries in the DB.
def flat_dir_dp_name_uniqueness #:nodoc:
return true if self.data_provider_id.blank? # no check to make
return true if ! self.data_provider.content_storage_shared_between_users?
return true if ! self.data_provider&.content_storage_shared_between_users?
check_dup = Userfile.where(
:name => self.name,
:data_provider_id => self.data_provider_id,
Expand Down