FEATURE: make templates not-editable

This commit is contained in:
Michal Kváček
2016-09-21 00:58:03 +02:00
parent f5e1e24df8
commit 7d051d1f6a
4 changed files with 26 additions and 19 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class EditTemplate extends Controller
}
// save new content only if something was changed
if ($this->isContentDifferent($originalTemplate, $customTemplate, $request->templateContent)) {
if ($template->editable && $this->isContentDifferent($originalTemplate, $customTemplate, $request->templateContent)) {
// create directory for custom updates
if (!is_dir($customDir)) {