Fix for unauthorized user edit