Use CanCanCan for oauth clients controller

This commit is contained in:
Andy Allan 2019-01-09 15:34:54 +01:00
parent 425f42dd80
commit b184b39f34
2 changed files with 3 additions and 1 deletions

View file

@ -3,7 +3,8 @@ class OauthClientsController < ApplicationController
before_action :authorize_web
before_action :set_locale
before_action :require_user
authorize_resource :class => ClientApplication
def index
@client_applications = current_user.client_applications