X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b18c1bff8be91b1a6f3995c74a766d92650396b0..12281b1cc1c246cc1debcabbc12d2840cdb6666f:/app/views/oauth2_applications/_form.html.erb?ds=inline diff --git a/app/views/oauth2_applications/_form.html.erb b/app/views/oauth2_applications/_form.html.erb index d69536c6b..51267c069 100644 --- a/app/views/oauth2_applications/_form.html.erb +++ b/app/views/oauth2_applications/_form.html.erb @@ -3,5 +3,5 @@ <%= f.form_group :confidential do %> <%= f.check_box :confidential %> <% end %> -<%= f.collection_check_boxes :scopes, Oauth.scopes, :name, :description %> +<%= f.collection_check_boxes :scopes, Oauth.scopes(:oauth2 => true, :privileged => current_user.administrator?), :name, :description %> <%= f.primary %>