Skip to content

Commit

Permalink
Merge pull request doorkeeper-gem#709 from GeekOnCoffee/patch-1
Browse files Browse the repository at this point in the history
Check count, not merely presence of `scopes`
  • Loading branch information
tute committed Aug 20, 2015
2 parents 5ac4f4e + 538cecd commit f52fa09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/doorkeeper/authorizations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<%= raw t('.prompt', client_name: "<strong class=\"text-info\">#{ @pre_auth.client.name }</strong>") %>
</p>

<% if @pre_auth.scopes %>
<% if @pre_auth.scopes.count > 0 %>
<div id="oauth-permissions">
<p><%= t('.able_to') %>:</p>

Expand Down

0 comments on commit f52fa09

Please sign in to comment.