]> _ Git - cubist_cms-back.git/commitdiff
fix #3466 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Mar 2020 17:12:43 +0000 (18:12 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Mar 2020 17:12:43 +0000 (18:12 +0100)
src/app/Magic/Fields/User.php

index 360d0bc9769ecc487396d4cdb3dc5fcce0ec71c2..fa4f0182511fb09239fd013bb97ac072e6c97b63 100644 (file)
@@ -10,13 +10,13 @@ class User extends SelectFromModel
     public function getDefaultAttributes()
     {
         $default = ['optionsmodel' => $this->_optionsmodel, 'attribute' => 'name'];
-        $auth = auth();
-        if ($auth) {
-            $user = $auth->user();
-            if ($user) {
-                $default['value'] = $user->id;
-            }
-        }
+//        $auth = auth();
+//        if ($auth) {
+//            $user = $auth->user();
+//            if ($user) {
+//                $default['value'] = $user->id;
+//            }
+//        }
         return array_merge(parent::getDefaultAttributes(), $default);
     }
 }