Add api_status checks for user preferences API
This commit is contained in:
parent
ed15352f56
commit
91fc588556
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
# Update and read user preferences, which are arbitrary key/val pairs
|
||||
module Api
|
||||
class UserPreferencesController < ApiController
|
||||
before_action :check_api_readable
|
||||
before_action :check_api_writable, :only => [:update_all, :update, :destroy]
|
||||
before_action :authorize
|
||||
|
||||
authorize_resource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue