mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
* Closes #1503 and fixes override_template
This commit is contained in:
@@ -110,7 +110,7 @@ class ThemeLoader(FileSystemLoader):
|
|||||||
def get_source(self, environment, template):
|
def get_source(self, environment, template):
|
||||||
# Check if the template has been overriden
|
# Check if the template has been overriden
|
||||||
if template in self.overriden_templates:
|
if template in self.overriden_templates:
|
||||||
return self.overriden_templates[template], template, True
|
return self.overriden_templates[template], template, lambda: True
|
||||||
|
|
||||||
# Check if the template requested is for the admin panel
|
# Check if the template requested is for the admin panel
|
||||||
if template.startswith("admin/"):
|
if template.startswith("admin/"):
|
||||||
|
|||||||
Reference in New Issue
Block a user