Sha256: 87893793888b26ded8463b87b52707c060f6987b9359eee6c5a91e44fe969d7b
Contents?: true
Size: 416 Bytes
Versions: 19
Compression:
Stored size: 416 Bytes
Contents
view_permission = Permission.where(:name => :view_foreman_tasks, :resource_type => ForemanTasks::Task.name).first # the view_permissions can be nil in tests: skipping in that case if view_permission && !Role.anonymous.permissions.include?(view_permission) Role.anonymous.filters.create(:search => 'owner.id = current_user') do |filter| filter.filterings.build { |f| f.permission = view_permission } end end
Version data entries
19 entries across 19 versions & 1 rubygems