]> _ Git - cubedesigners_userdatabase.git/commitdiff
try #5328 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Jun 2022 15:35:35 +0000 (17:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 Jun 2022 15:35:35 +0000 (17:35 +0200)
src/app/Models/Company.php
src/app/Permissions.php

index e609dd82009770a0d649bcb8e1a52fff9026e7ee..d8f38d4132237de6a5bbbaca651f29196c54b397 100644 (file)
@@ -82,7 +82,7 @@ class Company extends CubistMagicAbstractModel
         $this->addField([
             'name' => 'users',
             'type' => Users::class,
-            'label' => 'Contacts',
+            'label' => __('Contacts'),
             'column' => true,
             'tab' => __('Contacts'),
             'form' => 'update',
index 130f0388508893b8f4e43777994e5e2906285941..28d26c4a8cd4a30b4658fd15741c07ec2d866520 100644 (file)
@@ -96,7 +96,7 @@ class Permissions
 
         \Barryvdh\Debugbar\Facade::startMeasure($cacheKey, 'Build permissions tree');
         $cache = cache()->tags(['model_' . Company::class, 'model_' . User::class]);
-        $ttl = 86400;
+        $ttl = 3600;
         if ($force) {
             self::$_data = $closure();
             $cache->put($cacheKey, $ttl, self::$_data);