Fixes #3572 - check for uid and permissions on save