samvera-deprecated / worthwhile

An simple institutional repository for Hydra
Other
17 stars 5 forks source link

BUG: Creating new objects with embargo/lease set causes error #16

Closed flyingzumwalt closed 9 years ago

flyingzumwalt commented 10 years ago

refs curationexperts/absolute#34

To reproduce: Create a new work Set visibility to embargo & fill in embargo release date Click button to Create the Work

The Problem: something (possibly CanCan?) is calling .build(attributes) before actor.create is called. This means that the visibility attribute is being passed into .build before interpret_visibility has a chance to intercept the lease/embargo visibility

jcoyne commented 9 years ago

Works now.