Fix #776 - Change how can_edit works

Will now check the Stage recursivly, then Live.
This is still in need of refactoring, but fixes the immediate issue.
Merge pull request #1058 from ss23/infinite_loop_test

Fix #776 - Change how can_edit works