Commit 78a983f6 authored by Patrick Schmalstig's avatar Patrick Schmalstig
Browse files

Remove implicit_usergroup_sync value in favor of using the scheduler's native...

Remove implicit_usergroup_sync value in favor of using the scheduler's native enable / disable system for hooks
parent 6bba2553
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1303,6 +1303,8 @@ class Module_admin_version
                }
            }
            set_option('telemetry', strval($telemetry));

            delete_value('implicit_usergroup_sync'); // In favor of the native system scheduler enable / disable system
        }
    }

+1 −5
Original line number Diff line number Diff line
@@ -32,10 +32,6 @@ class Hook_cron_implicit_usergroup_sync
     */
    public function info(?int $last_run, ?bool $calculate_num_queued) : ?array
    {
        if (get_value('implicit_usergroup_sync') !== '1') {
            return null;
        }

        if (get_forum_type() != 'cns') {
            return null;
        }
@@ -44,7 +40,7 @@ class Hook_cron_implicit_usergroup_sync
            'label' => 'Sync implicit usergroups',
            'num_queued' => null,
            'minutes_between_runs' => 5,
            'enabled_by_default' => true,
            'enabled_by_default' => false,
        ];
    }