Use CanCanCan for search controller

This commit is contained in:
Andy Allan 2019-01-02 19:17:32 +01:00
parent 3baffaf9a2
commit ad68d4c634
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@ class SearchController < ApplicationController
# Can search by tag k, v, or both (type->k,value->v)
# Can search by name (k=name,v=....)
skip_before_action :verify_authenticity_token
authorize_resource :class => false
def search_all
do_search(true, true, true)