Allow user to remove terms and conditions file

This commit is contained in:
Luis Ramos
2020-08-18 19:20:11 +01:00
parent 24cdd0c467
commit 66587ccc00
10 changed files with 91 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
module Api
class TermsAndConditionsController < Api::EnterpriseAttachmentController
private
def attachment_name
:terms_and_conditions
end
def enterprise_authorize_action
case action_name.to_sym
when :destroy
:remove_terms_and_conditions
end
end
end
end