Class: Decidim::DirectVerifications::Verification::ConfirmUserAuthorization

Inherits:
Verifications::ConfirmUserAuthorization
  • Object
show all
Defined in:
app/commands/decidim/direct_verifications/verification/confirm_user_authorization.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
12
# File 'app/commands/decidim/direct_verifications/verification/confirm_user_authorization.rb', line 7

def call
  return broadcast(:invalid) unless form.valid?

  authorization.grant!
  broadcast(:ok)
end