Sha256: 8b52a9fd285b6f0278233bd2923af969dcfa2c1eedda2756597a567dacc0244d

Contents?: true

Size: 437 Bytes

Versions: 152

Compression:

Stored size: 437 Bytes

Contents

collection @subscriptions

if params.key?(:include_permissions)
  user = User.current # current_user is not available here
  node do
    node(:can_manage_subscription_allocations) { user.can?("manage_subscription_allocations") }
    node(:can_import_manifest) { user.can?("import_manifest") }
    node(:can_delete_manifest) { user.can?("delete_manifest") }
    node(:can_edit_organizations) { user.can?("edit_organizations") }
  end
end

Version data entries

152 entries across 152 versions & 1 rubygems

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