Fix link for external users

This commit is contained in:
Sebastian Serth
2019-01-15 17:37:34 +01:00
parent 7eab61dc8f
commit 0b5ec1820d

View File

@ -10,7 +10,7 @@ h1 = ExternalUser.model_name.human(count: 2)
tbody
- @users.each do |user|
tr
td = link_to_if(policy(user).show?, user.displayname)
td = link_to_if(policy(user).show?, user.displayname, user)
td = link_to_if(policy(user.consumer).show?, user.consumer, user.consumer)
td = link_to(t('shared.show'), user) if policy(user).show?