summaryrefslogtreecommitdiff
path: root/app/Module/AbstractModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Module/AbstractModule.php')
-rw-r--r--app/Module/AbstractModule.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Module/AbstractModule.php b/app/Module/AbstractModule.php
index e39f1b8369..311f80dbbb 100644
--- a/app/Module/AbstractModule.php
+++ b/app/Module/AbstractModule.php
@@ -206,7 +206,7 @@ abstract class AbstractModule
$access_level = Database::prepare(
"SELECT access_level FROM `##module_privacy` WHERE gedcom_id = :gedcom_id AND module_name = :module_name AND component = :component"
)->execute([
- 'gedcom_id' => $tree->getTreeId(),
+ 'gedcom_id' => $tree->id(),
'module_name' => $this->getName(),
'component' => $component,
])->fetchOne();