- before_action :check_permission, only: [:index, :show, :resolve,:open,:ignore,:comment]
- before_action :find_issue, only: [:show, :resolve, :reopen, :ignore]
- before_action :get_user_role, only: [:show, :index]
+ before_action :set_issues
+ before_action :check_permission, :only => [:index, :show, :resolve, :open, :ignore, :comment]
+ before_action :find_issue, :only => [:show, :resolve, :reopen, :ignore]
+ before_action :setup_user_role, :only => [:show, :index]
+
+ helper_method :sort_column, :sort_direction