Skip to content

Commit

Permalink
Use the system user when no admin is present
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Nov 26, 2024
1 parent d1c9efb commit 75f042a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/seeders/seeder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def not_applicable_message

# The user being the author of all data created during seeding.
def admin_user
@admin_user ||= User.not_builtin.admin.first
@admin_user ||= (User.not_builtin.admin.first || User.system)

Check notice on line 83 in app/seeders/seeder.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] app/seeders/seeder.rb#L83 <Style/RedundantParentheses>

Don't use parentheses around a logical expression.
Raw output
app/seeders/seeder.rb:83:21: C: Style/RedundantParentheses: Don't use parentheses around a logical expression.
end

protected
Expand Down

0 comments on commit 75f042a

Please sign in to comment.