Skip to content

Commit

Permalink
Do not show the service to the user if it is disabled, fixes #6184
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaburgan committed Feb 7, 2023
1 parent 2fe5a7b commit b3b2a16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/publisher/_publisher.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
.btn-toolbar.pull-right#publisher-service-icons
- if current_user.services
- current_user.services.each do |service|
= service_button(service)
- if AppConfig.configured_services.map(&:to_s).include? service.provider
= service_button(service)
.btn.btn-link.question_mark{title: t("shared.public_explain.manage"),
data: {toggle: "modal", target: "#publicExplainModal"}}
%i.entypo-cog
Expand Down
4 changes: 4 additions & 0 deletions config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,9 @@ test:
enable: true
key: 'fake'
secret: 'sdoigjosdfijg'
tumblr:
enable: true
key: 'fake'
secret: 'sdoigjosdfijg'
mail:
enable: true

0 comments on commit b3b2a16

Please sign in to comment.