FEATURE: make templates not-editable
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user