aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-02-02 23:13:58 +0100
committerhellekin <hellekin@cepheide.org>2021-02-02 23:13:58 +0100
commitb5739232a535f89b48b54ee52ea7d9bb59f8a46f (patch)
tree189ce7ebf48371b29def0fddc7c2e41e7cfa38bd /db
parent8e404c4f3cf7880681b6f4cdf3c378e084ad54d2 (diff)
downloadincommon-map-b5739232a535f89b48b54ee52ea7d9bb59f8a46f.tar.gz
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.
Diffstat (limited to 'db')
-rw-r--r--db/seeds.rb3
1 files changed, 2 insertions, 1 deletions
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