Introduce privileged scopes that only an administrator can enable
This commit is contained in:
parent
6a9ab7cb2d
commit
6c6e8883f7
7 changed files with 38 additions and 20 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue