No need to authorize_update_build! if 'trace' requested (as same as 'raw')

This commit is contained in:
Shinya Maeda 2017-03-08 15:37:39 +09:00
parent efc4e8dda9
commit 68aae3ab9e

View file

@ -1,7 +1,7 @@
class Projects::BuildsController < Projects::ApplicationController
before_action :build, except: [:index, :cancel_all]
before_action :authorize_read_build!, except: [:cancel, :cancel_all, :retry, :play]
before_action :authorize_update_build!, except: [:index, :show, :status, :raw]
before_action :authorize_update_build!, except: [:index, :show, :status, :raw, :trace]
layout 'project'
def index