Project

General

Profile

« Previous | Next » 

Revision 82b4749e

Added by Marek Hulán about 10 years ago

Fixes #5664 - Host filters can use taxonomies

Also disables taxonomy filters on resources that do not support them.

View differences:

app/controllers/permissions_controller.rb
class PermissionsController < ApplicationController
include FiltersHelper
include TaxonomyHelper
respond_to :js
def index
......
@permissions = Permission.find_all_by_resource_type(type)
@search_path = search_path(type)
@granular = granular?(type)
if @granular
resource_class = Filter.get_resource_class(type)
@show_organizations = show_organization_tab? && resource_class.allows_organization_filtering?
@show_locations = show_location_tab? && resource_class.allows_location_filtering?
end
end
private

Also available in: Unified diff