From b5739232a535f89b48b54ee52ea7d9bb59f8a46f Mon Sep 17 00:00:00 2001 From: hellekin Date: Tue, 2 Feb 2021 23:13:58 +0100 Subject: Introduce an Anonymous Agent Since we moved away from Roles it's important to maintain a default Agent that is distinct from the previous default IN COMMON Agent. Previously, a user without a proper group would be granted the `observer` role in the default Agent, enough to create new resources. Now, we consider anonymous users to be part of the Anonymous Agent, which also brings the possibility for them to edit yet to be accepted Resources. --- db/seeds.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'db') diff --git a/db/seeds.rb b/db/seeds.rb index 60cebe2..76773e9 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -11,7 +11,8 @@ 'Dewey': '6347f151-6782-437c-8bae-55730672a76f', 'PS': '3211da93-69fb-4d9b-825c-6ab51784fd18', 'incommon': '262ea4f5-186d-483b-8414-025f23b65eb4', - 'ConcertES': '066e5968-03c3-4c15-bd5b-f73a10b5e9f1' + 'ConcertES': '066e5968-03c3-4c15-bd5b-f73a10b5e9f1', + 'Anonymous': '154cd5a4-3341-4c5f-8dd3-805c976c2a26' }.each do |agent_name, uuid| Agent.find_or_create_by(name: agent_name, uuid: uuid) end -- cgit v1.2.3