Skip to content

Commit

Permalink
[WIP] allow configuration_script_payloads#credentials to be shown
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Sep 5, 2023
1 parent 2baaa39 commit 95eb866
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ module Api
class ConfigurationScriptPayloadsController < BaseController
include Subcollections::Authentications

def api_resource_action_options
if @req.action == "read" && @req.collection_id && @req.subcollection.blank?
%w[include_encrypted_attributes]
else
super
end
end

def edit_resource(type, id, data)
resource = resource_search(id, type)

Expand Down

0 comments on commit 95eb866

Please sign in to comment.