Use CanCanCan for oauth clients controller
This commit is contained in:
parent
425f42dd80
commit
b184b39f34
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue