summaryrefslogtreecommitdiff
path: root/includes/sys_menu.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-09-20 12:18:08 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-09-20 12:18:08 +0200
commit945fcb079a219fa29e8f6ee1afc3f1c0c5c822cb (patch)
tree7f03157616509fe583b1b0aea6e2d06c53bd9c89 /includes/sys_menu.php
parentc6ef1120f82839cbb9d5abee12ab3e4803d5e2cd (diff)
Added registration_enabled configuration
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r--includes/sys_menu.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php
index 2eaa1234..385a6948 100644
--- a/includes/sys_menu.php
+++ b/includes/sys_menu.php
@@ -59,7 +59,7 @@ function header_toolbar()
);
}
- if (!isset($user) && in_array('register', $privileges)) {
+ if (!isset($user) && in_array('register', $privileges) && config('registration_enabled')) {
$toolbar_items[] = toolbar_item_link(page_link_to('register'), 'plus', register_title(), $page == 'register');
}