Class: EphemeralFileAuthorizationHandler
- Inherits:
-
FileAuthorizationHandler
- Object
- Decidim::AuthorizationHandler
- FileAuthorizationHandler
- EphemeralFileAuthorizationHandler
- Defined in:
- app/services/ephemeral_file_authorization_handler.rb
Overview
A subclass of FileAuthorizationHandler for ephemeral verification workflows. It excludes tos_agreement from form_attributes because the verifications view already renders it as a proper checkbox via the _tos_acceptance_field partial.
The class name matches the workflow registration name (:ephemeral_file_authorization_handler) so that handler_name is consistent across the hidden field, the authorization record, and the permission check.
Instance Method Summary collapse
Methods inherited from FileAuthorizationHandler
#authorized?, #censed, #census_for_user, #initialize, #metadata, #organization, #unique_id
Constructor Details
This class inherits a constructor from FileAuthorizationHandler
Instance Method Details
#form_attributes ⇒ Object
11 12 13 |
# File 'app/services/ephemeral_file_authorization_handler.rb', line 11 def form_attributes attributes.except(*%w(id user tos_agreement)).keys end |
#handler_name ⇒ Object
15 16 17 |
# File 'app/services/ephemeral_file_authorization_handler.rb', line 15 def handler_name +"ephemeral_file_authorization_handler" end |