Fix bug follower render (opensimplf)

This commit is contained in:
Xavier J 2016-10-26 16:06:01 +02:00
parent 06df02f72b
commit d455b6f12d
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
class Users::RecapitulatifController < UsersController
before_action only: [:show] do
authorized_routes? self.class
end

View file

@ -11,7 +11,7 @@
%a{href: "#invites", 'aria-controls' => "invites", role: "tab", 'data-toggle' => "tab"}
Invités
- if gestionnaire_signed_in?
- if gestionnaire_signed_in? && !request.env['PATH_INFO'].include?('users/dossiers')
%li{role: "presentation"}
%a{href: "#followers", 'aria-controls' => "followers", role: "tab", 'data-toggle' => "tab"}
Abonnés
@ -30,7 +30,7 @@
- if gestionnaire_signed_in? || @facade.dossier.owner?(current_user.email)
%div{role: "tabpanel", class: "tab-pane fade", id:"invites"}
= render partial: '/dossiers/invites'
- if gestionnaire_signed_in?
- if gestionnaire_signed_in? && !request.env['PATH_INFO'].include?('users/dossiers')
%div{role: "tabpanel", class: "tab-pane fade", id:"followers"}
= render partial: 'followers'
%div{role: "tabpanel", class: "tab-pane fade", id:"champs_private"}