Project

General

Profile

« Previous | Next » 

Revision f30caf97

Added by Julien Pivotto about 9 years ago

Fixes #8812 - Pass model type so search_for is called on Host

At least on version 1.6.1, the absence of this second parameter leads to a
runtime crash when it's time to validate if the current user (non-admin) is
allowed to perform a power operation on given a host via the APIv2.

The root cause of the crash is basically that search_for is called on
Host::Base by app/services/authorizer.rb:50.

(cherry picked from commit e02a2ff23dfec7361c688b469461cc1e926bba23)

  • added
  • modified
  • copied
  • renamed
  • deleted