summaryrefslogtreecommitdiff
path: root/includes/sys_menu.php
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2019-03-06 19:28:07 +0100
committermsquare <msquare@notrademark.de>2019-03-09 13:53:08 +0100
commit69ac1b2d2115a41afe2bd4527abadda70063019a (patch)
tree361f1ab05961526a94bf13429c32a03b6a4c8389 /includes/sys_menu.php
parentafa4506e11f96d05a727e591301f98fb50f8fad4 (diff)
Support disabling the arrival feature
Setting `autoarrive` to true will now cause all newly registered angels to be automatically confirmed as arrived.
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r--includes/sys_menu.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php
index b4c04a98..4dabc857 100644
--- a/includes/sys_menu.php
+++ b/includes/sys_menu.php
@@ -114,6 +114,10 @@ function make_navigation()
'admin_event_config' => __('Event config'),
];
+ if (config('autoarrive')) {
+ unset($admin_pages['admin_arrive']);
+ }
+
foreach ($admin_pages as $menu_page => $title) {
if (auth()->can($menu_page)) {
$admin_menu[] = toolbar_item_link(