Add changelog inside the application (#1172)

This commit is contained in:
Régis Freyd
2018-04-14 19:52:52 -04:00
committed by GitHub
parent cb3fe20a1e
commit ad2b75db75
36 changed files with 591 additions and 83 deletions
+3 -1
View File
@@ -27,6 +27,8 @@ class SettingsController extends Controller
'activity_types',
'api_usage',
'cache',
'changelog_user',
'changelogs',
'countries',
'currencies',
'default_contact_field_types',
@@ -119,7 +121,7 @@ class SettingsController extends Controller
$account = auth()->user()->account;
if ($account->isSubscribed()) {
if ($account->isSubscribed() && auth()->user()->has_access_to_paid_version_for_free == 0) {
$account->subscription($account->getSubscribedPlanName())->cancelNow();
}