mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-24 11:22:42 +01:00
Fix deactivating licenses
This commit is contained in:
parent
54657e5dc7
commit
77ed94a2e8
@ -398,12 +398,15 @@ class ModulesController extends Controller
|
||||
$response['msg'] = $result['message'];
|
||||
} else {
|
||||
if (!empty($result['status']) && $result['status'] == 'success') {
|
||||
// Remove remembered license key and deactivate license in DB
|
||||
\App\Module::deactivateLicense($alias, '');
|
||||
$db_module = \App\Module::getByAlias($alias);
|
||||
if ($db_module && trim($db_module->license) == trim($license)) {
|
||||
// Remove remembered license key and deactivate license in DB
|
||||
\App\Module::deactivateLicense($alias, '');
|
||||
|
||||
// Deactivate module
|
||||
\App\Module::setActive($alias, false);
|
||||
\Artisan::call('freescout:clear-cache', []);
|
||||
// Deactivate module
|
||||
\App\Module::setActive($alias, false);
|
||||
\Artisan::call('freescout:clear-cache', []);
|
||||
}
|
||||
|
||||
// Flash does not work here.
|
||||
$flash = [
|
||||
|
Loading…
Reference in New Issue
Block a user