]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/UserController.php
Updated laravel to 5.2 and started ldap implementation
[bookstack] / app / Http / Controllers / UserController.php
index b81be16f666e3a7eeb9d97bf87e6539213c3a1b6..9184b245ef29c0324de3f397c735b4ca346d4042 100644 (file)
@@ -72,7 +72,7 @@ class UserController extends Controller
         $user->attachRoleId($request->get('role'));
 
         // Get avatar from gravatar and save
-        if (!env('DISABLE_EXTERNAL_SERVICES', false)) {
+        if (!config('services.disable_services')) {
             $avatar = \Images::saveUserGravatar($user);
             $user->avatar()->associate($avatar);
             $user->save();