Katello/katello — pull request #4091 by parthaa (2014-05-14 23:04:06+00:00)
Title: Fixes #5654 - Permissions for env promotion/remove

This commit contains code to handle environment promotion and deletion.
Basic Rules
To Promote/Remove you need
1) promote_or_remove_content_views from content views
2) promote_or_remove_content_views_to_environment from lifecycle environments.

Note: Remove of a content view is slightly different from "destroy".
Remove implies removal of content view versions which could entail
removal from environments.

Unit tests TBD. Also waiting on https://github.com/Katello/katello/pull/4069 to be merged.