Use CanCanCan for swf controller

This commit is contained in:
Andy Allan 2019-01-09 10:32:57 +01:00
parent 18e418cc4c
commit 73201ca96b
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
class SwfController < ApplicationController
skip_before_action :verify_authenticity_token
before_action :check_api_readable
authorize_resource :class => false
# to log:
# RAILS_DEFAULT_LOGGER.error("Args: #{args[0]}, #{args[1]}, #{args[2]}, #{args[3]}")