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