Don't allow editing entities you can't edit. Closes #41