Permission checks bugfix.

Corrected two "subtle" copy-paste-induced bugs; the permission checks in
editcontent referred to the wrong (read: non-existant) variables,
leading to permission checks of the form 'contenttype:foobar:edit:'
instead of 'contenttype:foobar:edit:23'.

Fixes #834.