octobercms/october · error · ApplicationException
cms::lang.editor.error_no_doctype_permissions
Error message
cms::lang.editor.error_no_doctype_permissions
What it means
Permission check in assertDocumentTypePermissions: the authenticated backend user lacks editor permissions for the requested document type, so the CRUD command (save/load metadata) is refused with the doctype named in the error data.
Solutions
- Grant the user/group permission for that document type in the backend permissions UI
- Request access from an administrator
- Ensure the document type key in the request matches a type the user can access
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/cms/classes/editorextension/HasExtensionCrud.php:776 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/1b4277c38f00b4ab.
Report an issue: GitHub.
Appendix: source
Thrown at modules/cms/classes/editorextension/HasExtensionCrud.php:776
return '/assets';
}
if ($template instanceof CmsLang) {
return '/lang';
}
return $template->getObjectTypeDirName();
}
/**
* assertDocumentTypePermissions
*/
private function assertDocumentTypePermissions($documentType)
{
$user = BackendAuth::getUser();
if (!EditorExtension::hasAccessToDocType($user, $documentType)) {
throw new ApplicationException(Lang::get(
'cms::lang.editor.error_no_doctype_permissions',
['doctype' => $documentType]
));
}
}
/**
* mergeLangContentWithDefaultKeys merges the default locale's keys into the
* lang file content so translators see all available keys prepopulated.
*/
/**
* command_onGetLangDefaultKeys returns the default language keys for
* prepopulating a new or existing lang file.
*/
protected function command_onGetLangDefaultKeys()
{
$metadata = $this->getRequestMetadata();
$this->validateRequestTheme($metadata);View on GitHub (pinned to b608633a7e)