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.10.0 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.9.2 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.10.0.rc2 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.10.0.rc1 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.4 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.9.1 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.3 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.9.0 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.7.6 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.2 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.9.0.rc2 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.9.0.rc1 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.1 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.7.5 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.0 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.0.rc2 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.7.4 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.8.0.rc1 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.7.3 app/views/katello/api/v2/content_views/permissions.rabl
katello-4.7.2 app/views/katello/api/v2/content_views/permissions.rabl