Enforcing embargo on search, show and edit views.

Enforcing embargo on all Solr queries. The Solr syntax comes from hydra-head 3.0 code when embargo enforcement was enforced, but that was removed quite a while ago.

Fixed issue with NOT queries not working for embargo. Also added in group checks for embargo. Might be a performance issue because of current_user.person.groups loading the Fedora objects for each group.

Unit tests for embargo on a work

Typo in method name fix

Have to override hydra-access-control's ability.rb to enforce embargo for cancan checks

Cleaning up previous commit

Enforcing embargo on the edit cancan checks

Only work objects can have embargo enforced

There are CanCan calls that use SolrDocuments as input. Needed to accomodate those by using the hydra-access-controls test_read and test_edit methods, but those were already overriden before to only work with ActiveFedora::Base objects as input. Needed to refactor these calls to work for both

Enforcing embargo on all Solr queries. The Solr syntax comes from hydra-head 3.0 code when embargo enforcement was enforced, but that was removed quite a while ago.

Fixed issue with NOT queries not working for embargo. Also added in group checks for embargo. Might be a performance issue because of current_user.person.groups loading the Fedora objects for each group.

Updates to the end_to_end feature test

Enforcing embargo on all Solr queries. The Solr syntax comes from hydra-head 3.0 code when embargo enforcement was enforced, but that was removed quite a while ago.

Fixing merge conflict

Fixed issue with NOT queries not working for embargo. Also added in group checks for embargo. Might be a performance issue because of current_user.person.groups loading the Fedora objects for each group.

Unit tests for embargo on a work

Typo in method name fix

There are CanCan calls that use SolrDocuments as input. Needed to accomodate those by using the hydra-access-controls test_read and test_edit methods, but those were already overriden before to only work with ActiveFedora::Base objects as input. Needed to refactor these calls to work for both

Fixed issue with NOT queries not working for embargo. Also added in group checks for embargo. Might be a performance issue because of current_user.person.groups loading the Fedora objects for each group.

Unit tests for embargo on a work

Fixed issue with NOT queries not working for embargo. Also added in group checks for embargo. Might be a performance issue because of current_user.person.groups loading the Fedora objects for each group.

Typo in method name fix

There are CanCan calls that use SolrDocuments as input. Needed to accomodate those by using the hydra-access-controls test_read and test_edit methods, but those were already overriden before to only work with ActiveFedora::Base objects as input. Needed to refactor these calls to work for both

Updates to the end_to_end feature test

Enforcing embargo on all Solr queries. The Solr syntax comes from hydra-head 3.0 code when embargo enforcement was enforced, but that was removed quite a while ago.

Fixing merge conflict

Fixed date format in test

Fixed date format in test - removed comments

Changed embargo date back to one day

Fixing logic issue with read access for non-embargo records

Updating end_to_end feature test to accomodate new UI - Still need to update view_your_dashboard method
Merge branch 'feature/HYDRASIR-324' of https://github.com/projecthydra/curate into feature/HYDRASIR-324