You're right that the user can change the title, my mistake. Using debugLog I was able to find the problem, and that is that the debug log isn't even created. So my code must not be getting called. I had thought I'd invoked everything correctly but I suppose not. I've added these three things but there must be something I'm missing:
`$plugin_is_filter = -5;`
`if (getOption('register_user_personal_album')) zp_register_filter('save_album_utilities_data', 'personalAlbumPreventRename');`
`
function personalAlbumPreventRename($object, $prefix) {
debugLog("\$object->getFolder()");
debugLog("\$_zp_current_admin['user']");
debugLog("\$object->getParent()");
debugLog("isset(\$_POST['a-'.$prefix.'MoveCopyRename'])");
if ($object->getFolder() === $_zp_current_admin['user'] && !$object->getParent()) {
unset($_POST['a-'.$prefix.'MoveCopyRename']);
debugLog("isset(\$_POST['a-'.$prefix.'MoveCopyRename'])");
}
debugLog("isset(\$_POST['a-'.$prefix.'MoveCopyRename'])");
}
`
The full code is at the link I posted before if you're interested. Any help at all would be appreciated.