Skip to content

Commit

Permalink
Check count, not merely presence of scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekOnCoffee committed Aug 20, 2015
1 parent 5ac4f4e commit 538cecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/doorkeeper/authorizations/new.html.erb
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 538cecd

Please sign in to comment.