Commit f37342de authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Fix fixtures for projects in the user namespace

Skips adding the current user to the group when there
is no group available.
parent 0249cdee
......@@ -149,7 +149,7 @@ class Gitlab::Seeder::CycleAnalytics
email: "vsm-user-#{i}@#{suffix}.com"
)
project.group.add_developer(user)
project.group&.add_developer(user)
project.add_developer(user)
@developers << user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment