Sha256: 3556d04c17b7b1bec324113719a8b38630a72e1bde74e5f021104f0e5094d308

Contents?: true

Size: 469 Bytes

Versions: 46

Compression:

Stored size: 469 Bytes

Contents

collection @alternate_content_sources

if ::Foreman::Cast.to_bool(params.fetch(:include_permissions, false))
  user = User.current # current_user is not available here
  node do
    node(:can_create) { user.can?("create_alternate_content_sources") }
    node(:can_edit) { user.can?("edit_alternate_content_sources") }
    node(:can_delete) { user.can?("destroy_alternate_content_sources") }
    node(:can_view) { user.can?("view_alternate_content_sources") }
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
katello-4.14.2 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.15.0 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.15.0.rc2 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.15.0.rc1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.14.1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.14.0 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.14.0.rc3 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.14.0.rc2 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.14.0.rc1.1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.14.0.rc1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.13.1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.13.0 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.12.1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.13.0.rc1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.12.0 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.12.0.rc3 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.12.0.rc2 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.12.0.rc1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.11.1 app/views/katello/api/v2/alternate_content_sources/permissions.rabl
katello-4.11.0 app/views/katello/api/v2/alternate_content_sources/permissions.rabl