#2203: Allow using REST API with token

This commit is contained in:
Jyri-Petteri Paloposki 2019-05-04 20:31:32 +03:00
parent ec59f10af8
commit d3ba80c84e
4 changed files with 7 additions and 7 deletions

View file

@ -4,8 +4,8 @@ class ProjectsController < ApplicationController
before_action :set_source_view
before_action :set_project_from_params, :only => [:update, :destroy, :show, :edit, :set_reviewed]
before_action :default_context_filter, :only => [:create, :update]
skip_before_action :login_required, :only => [:index]
prepend_before_action :login_or_feed_token_required, :only => [:index]
skip_before_action :login_required, :only => [:index, :show]
prepend_before_action :login_or_feed_token_required, :only => [:index, :show]
def index
@source_view = params['_source_view'] || 'project_list'