Sha256: 6667f78e1b97fc0335f1c2fd3b2d4d17e1c304b854dbbfb34ba686fde9b870a4
Contents?: true
Size: 421 Bytes
Versions: 87
Compression:
Stored size: 421 Bytes
Contents
view_permission = Permission.find_by(name: "view_job_invocations", resource_type: 'JobInvocation') default_role = Role.default # the view_permissions can be nil in tests: skipping in that case if view_permission && !default_role.permissions.include?(view_permission) default_role.filters.create(:search => 'user = current_user') do |filter| filter.filterings.build { |f| f.permission = view_permission } end end
Version data entries
87 entries across 87 versions & 1 rubygems