Skip to content

Commit

Permalink
Show admin user create button locally or when signup is disabled (#5312)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinemde authored Dec 4, 2024
1 parent a786900 commit 0c8e867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/avo/actions/create_user.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Avo::Actions::CreateUser < Avo::Actions::ApplicationAction
self.name = "Create User"
self.visible = lambda {
current_user.team_member?("rubygems-org") && view == :index && !Rails.env.production?
current_user.team_member?("rubygems-org") && view == :index && (Rails.env.local? || !Clearance.configuration.allow_sign_up?)
}
self.standalone = true

Expand Down

0 comments on commit 0c8e867

Please sign in to comment.