From: Vincent Vanwaelscappel Date: Fri, 6 Mar 2020 17:12:43 +0000 (+0100) Subject: fix #3466 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9d60ca8b2738cf3c162ac8139e34ba901ed94ece;p=cubist_cms-back.git fix #3466 @0:10 --- diff --git a/src/app/Magic/Fields/User.php b/src/app/Magic/Fields/User.php index 360d0bc..fa4f018 100644 --- a/src/app/Magic/Fields/User.php +++ b/src/app/Magic/Fields/User.php @@ -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); } }