Project

General

Profile

Actions

Task #3237

closed

Bug #3072: [Workbench] Showing the empty collection in Workbench gives an error page

Review 3072-empty-collection-bugfix

Added by Tim Pierce almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Tim Pierce
Target version:

Description

Changes at a96adab2a:

Added empty collection (owned by the anonymous group) to test fixtures and to db/seeds.rb.

API integration tests: in permissions_test.rb, test that the active user can read objects in the anonymous group, even when there are no explicit permission links on that group or objects in it.

Workbench integration tests: added a test to confirm that a non-admin user can get the empty collection.

Cleanup code: User.can? now takes either a uuid or an object for the target.

Actions

Also available in: Atom PDF