Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6195, bz1109386 - 403 on cv version delete #4279

Merged
merged 1 commit into from Jun 20, 2014

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Jun 16, 2014

Content view remove call specifying versions and envs to be removed / unasssociated
had a minor glitch -> env_ids - @view.environment_ids.map(&:to_s)).empty?
env_ids = [1,2,3] while @view.environment_ids.map(&:to_s) = [1,2,3]
Problem was API was treating it like a list of strings while params code changed it to ints
This commit should fix that issue

@ehelms
Copy link
Member

ehelms commented Jun 17, 2014

I think the authorize_* calls should all consistently return either true or false.

end

def authorize_system_content_view(options)
if options[:system_content_view_id]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably assign this to a variable to shorten line 77.

module Katello
module Concerns::Authorization::Api::V2::ContentViewsController
extend ActiveSupport::Concern
included do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick - empty line between the extend and the included.

Content view remove call specifying versions and envs to be removed / unasssociated
had a minor glitch -> env_ids - @view.environment_ids.map(&:to_s)).empty?
env_ids = [1,2,3]  while @view.environment_ids.map(&:to_s) = [1,2,3]
Problem was API was treating it like a list of strings while params code changed it to ints
This commit should fix that issue
@ehelms
Copy link
Member

ehelms commented Jun 20, 2014

ACK for me. @daviddavis final call on you

@daviddavis
Copy link
Contributor

kid-thumbs-up

parthaa added a commit that referenced this pull request Jun 20, 2014
Fixes #6195, bz1109386 - 403 on cv version delete
@parthaa parthaa merged commit f2423e8 into Katello:master Jun 20, 2014
@parthaa parthaa deleted the cvv-perms-fix branch November 3, 2018 04:18
@parthaa parthaa restored the cvv-perms-fix branch November 3, 2018 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants