Do not show the service to the user if it is disabled, fixes #6184
This commit is contained in:
parent
ae3b7804f0
commit
14cf4ff85d
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -202,5 +202,9 @@ test:
|
|||
enable: true
|
||||
key: 'fake'
|
||||
secret: 'sdoigjosdfijg'
|
||||
tumblr:
|
||||
enable: true
|
||||
key: 'fake'
|
||||
secret: 'sdoigjosdfijg'
|
||||
mail:
|
||||
enable: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue