Add api_status checks for user preferences API

This commit is contained in:
Andy Allan 2024-05-29 14:32:12 +01:00
parent ed15352f56
commit 91fc588556

View file

@ -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