Fixes #11089 - Adapt tests to Rails 4
This commit contains all changes to tests in branchhttps://github.com/theforeman/foreman/pull/2055 that I found to beretrocompatible with Rails 3. The more of these we can get in, the lesscode we will have to review for Rails 4, and the more relevant it will...
fixes #10627 - apply host taxonomy scope to facts/report joins
Previous changes to perform a join onto hosts with authorisation resultin a query such as Report.joins(:hosts), which ignores anydefault_scope on Host::Base. This commit explicitly passes taxonomy...
fixes #8817 - look up reports with all joins from host scoped_search
This changes the optimisation in d50c799 which caused errors for users withhost filters referencing tables other than hosts.
When retrieving all reports joined with authorised hosts, the nested joins need...
fixes #5909 - return r/w resources from authorized scope
Refs #3809 - Remove useless assignments
fixes #3272 - allow 'admin' account to be removed and replaced
Fixes #5391 - Authorizer test should use testing permission
Also change order of seed so admin user can be saved andexisting Anonymous role is assigned.
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity