Index: openacs-4/packages/proctoring-support/www/review.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/proctoring-support/www/review.tcl,v diff -u -r1.1.2.6 -r1.1.2.7 --- openacs-4/packages/proctoring-support/www/review.tcl 3 Mar 2022 10:38:59 -0000 1.1.2.6 +++ openacs-4/packages/proctoring-support/www/review.tcl 3 Mar 2022 10:43:58 -0000 1.1.2.7 @@ -112,11 +112,12 @@ metadata = jsonb_set(coalesce(metadata, '{}'), '{revisions}', u.revisions) - from updated_revisions u - full join dual on true - where a.artifact_id = u.artifact_id - and acs_permission.permission_p(a.object_id, :reviewer_id, 'admin') - returning a.object_id, a.metadata->'revisions' as revisions + from updated_revisions u + full join dual on true + where (a.artifact_id = u.artifact_id or a.artifact_id = :artifact_id) + and acs_permission.permission_p(a.object_id, :reviewer_id, 'admin') + + returning a.object_id, a.metadata->'revisions' as revision ) -- Return the object_id so that we can inform websocket