Introduce privileged scopes that only an administrator can enable

This commit is contained in:
Tom Hughes 2021-07-30 22:24:51 +01:00
parent 6a9ab7cb2d
commit 6c6e8883f7
7 changed files with 38 additions and 20 deletions

View 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 %>