[BUGFIX] Do not allow users to edit doktypes without permissions