From: Vincent Vanwaelscappel Date: Wed, 17 Jun 2020 12:32:42 +0000 (+0200) Subject: wip #3712 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=eef227d60e3b7af7e45590bb2584974e4fe8fe68;p=cubedesigners_userdatabase.git wip #3712 @2 --- diff --git a/src/User.php b/src/User.php index 53e57c7..1cebf08 100644 --- a/src/User.php +++ b/src/User.php @@ -6,7 +6,7 @@ use Cubist\Backpack\app\Magic\Models\CubistMagicAuthenticatable; class User extends CubistMagicAuthenticatable { - protected $connection='extranet_users'; + protected $connection = 'extranet_users'; protected $table = 'user'; protected $_options = ['name' => 'users', 'singular' => 'user', @@ -36,7 +36,7 @@ class User extends CubistMagicAuthenticatable 'type' => 'SelectFromModel', 'optionsmodel' => Company::class, 'tab' => 'Contact', - 'column'=>true, + 'column' => true, ]); $this->addField(['name' => 'address', @@ -59,6 +59,14 @@ class User extends CubistMagicAuthenticatable 'label' => 'Locale', 'type' => 'Locale', 'tab' => 'Settings']); + + $extranetv1 = ['settings', 'ws_password', 'ws_settings', 'ws_rights', 'ws_domains', 'login', 'mobile', 'fax', 'notes']; + + foreach ($extranetv1 as $f) { + $this->addField(['name' => 'e1_' . $f, + 'type' => 'Hidden']); + } + } public function getNameAttribute()