Sha256: 416cb92176dba5325a1299ffa11e9d93debe1c26fb834d3fb42eccd140d2f609

Contents?: true

Size: 259 Bytes

Versions: 44

Compression:

Stored size: 259 Bytes

Contents

collection @content_views

if params.key?(:include_permissions)
  user = User.current # current_user is not available here
  node do
    node(:can_create) { user.can?("create_content_views") }
    node(:can_view) { user.can?("view_content_views") }
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

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