cuny-academic-commons / commons-in-a-box

Commons In A Box - A suite of community and collaboration tools for WordPress, designed especially for academic communities
http://commonsinabox.org
72 stars 14 forks source link

Clone process cannot complete when group File Library is non-empty #474

Closed boonebgorges closed 2 months ago

boonebgorges commented 4 months ago

The External Link feature added in #440 includes a post-save callback that involves a nonce check. However, this callback is also called during clone operations (and presumably other document-save routines outside the regular user interface). Because the nonce fields are not present in those non-UI situations, the nonce check necessarily fails, and the group clone process dies.

bree-z commented 2 months ago

Hi Boone,

I added items to the File Library of a course (an external link and an uploaded file) and cloned the course successfully. I did the same with a project.

If I was testing for the correct thing, I think we can close this.

Thanks!

boonebgorges commented 2 months ago

Sounds right. Thanks!