labels_controller.rb 347 Bytes
Newer Older
1
class LabelsController < ProjectResourceController
randx's avatar
randx committed
2
3
4
5
6
7
8
9
  before_filter :module_enabled

  # Allow read any issue
  before_filter :authorize_read_issue!

  respond_to :js, :html

  def index
randx's avatar
randx committed
10
    @labels = @project.issues_labels.order('count DESC')
randx's avatar
randx committed
11
12
13
14
15
16
17
18
  end

  protected

  def module_enabled
    return render_404 unless @project.issues_enabled
  end
end