src/main/resources/aspects/CopyItem/copyitem.js
/**
 * Assert that the currently authenticated eperson can deposit an item.
 * If they are not then an error page is returned and this function
 * will NEVER return.
 */
Assert that the currently authenticated eperson can deposit an item.
If they are not then an error page is returned and this function
will NEVER return.
Assert that the currently authenticated eperson can deposit an item . If they are not then an error page is returned and this function will NEVER return .
function assertCanDepositCopy(itemID) {
    if (!CopyItemUtils.canDepositCopy(getDSContext(), itemID)) {
        sendPage("admin/not-authorized");
        cocoon.exit();
    }
}
function assertCanDepositCopy ( itemID ) { if ( ! CopyItemUtils . canDepositCopy ( getDSContext ( ) , itemID ) ) { sendPage ( "admin/not-authorized" ) ; cocoon . exit ( ) ; } }
Assert that the currently authenticated eperson can deposit an item.
Assert that the currently authenticated eperson can deposit an item .