]> _ Git - cubedesigners_userdatabase.git/commitdiff
wip #3712 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jun 2020 12:32:42 +0000 (14:32 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 17 Jun 2020 12:32:42 +0000 (14:32 +0200)
src/User.php

index 53e57c71401251f08312afb989b42d831914271d..1cebf08eeeae6c4b7c6546097c22147cbc329e39 100644 (file)
@@ -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()