Fixes access check for manage view.
Added forgotten IsMyEntity check and fixed a bug introduced by a rename in r2816.
Addresses Issue 584.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
Benjamin Niemann <pink at odahoda dot de>: Main developer of Python target.
Clinton Roy <clinton.roy at gmail dot com>: AST templates and runtime.