application_controller.rb 197 Bytes
Newer Older
Valery Sizov's avatar
Valery Sizov committed
1
2
3
4
5
6
7
8
9
10
class Groups::ApplicationController < ApplicationController

  private
  
  def authorize_admin_group!
    unless can?(current_user, :manage_group, group)
      return render_404
    end
  end
end