psu-libraries / scholarsphere

Penn State's next generation institutional repository
MIT License
12 stars 6 forks source link

Restore admin ability to change visibility for all work types #1511

Closed EricDurante closed 4 months ago

EricDurante commented 4 months ago

I changed this authorization behavior previously without intending to, and I think that we probably still want admins to have this ability regardless of the deposit pathway used by the work. This also moves logic out of the view and into the authorization policy and tightens up the authorization in the controller for changing visibility (which I assume we would want).