]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth2_applications/_form.html.erb
Introduce privileged scopes that only an administrator can enable
[rails.git] / app / views / oauth2_applications / _form.html.erb
index d69536c6b3ca38ee3e78b1d2bccda01cfd493dfb..7fde3e0e7f19d57aa0ca9b2a4ca0d7a43e49e3b4 100644 (file)
@@ -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(:privileged => current_user.administrator?), :name, :description %>
 <%= f.primary %>