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

Prevent sharing works and filesets with unintended groups #6823

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
changing fileset initialization
davidcam-src committed Jun 5, 2024
commit 5af76db7f0e0bf82b95979eed1b844f62dd12290
8 changes: 7 additions & 1 deletion spec/controllers/hyrax/file_sets_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -15,7 +15,13 @@

describe "#destroy" do
context "file_set with a parent" do
let(:file_set) { FactoryBot.create(:file_set, user: user) }
let(:file_set) do
FactoryBot.create(:file_set, user: user).tap do |fs|
fs.edit_users = [user.user_key]
fs.visibility = Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_AUTHENTICATED
fs.save
end
end
let(:work) { FactoryBot.create(:work, title: ['test title'], user: user) }

before do