Browse Source

fixed DBGroup setup in GroupModel, PermModel & UserModel

v3-dev
REJack 6 years ago
parent
commit
fd774e5e80
No known key found for this signature in database
GPG Key ID: 4A44B48700429F46
  1. 9
      app/Models/Aauth/GroupModel.php
  2. 9
      app/Models/Aauth/PermModel.php
  3. 9
      app/Models/Aauth/UserModel.php

9
app/Models/Aauth/GroupModel.php

@ -53,16 +53,17 @@ class GroupModel extends Model
*/
public function __construct($db = null, $validation = null, $config = null)
{
parent::__construct();
if (is_null($config))
{
$config = new AauthConfig();
}
$this->config = $config;
$this->config = $config;
$this->DBGroup = $this->config->dbProfile;
parent::__construct();
$this->table = $this->config->dbTableGroups;
$this->DBGroup = $this->config->dbProfile;
$this->tempUseSoftDeletes = $this->config->dbSoftDeleteGroups;
$this->tempReturnType = $this->config->dbReturnType;

9
app/Models/Aauth/PermModel.php

@ -53,16 +53,17 @@ class PermModel extends Model
*/
public function __construct($db = null, $validation = null, $config = null)
{
parent::__construct();
if (is_null($config))
{
$config = new AauthConfig();
}
$this->config = $config;
$this->config = $config;
$this->DBGroup = $this->config->dbProfile;
parent::__construct();
$this->table = $this->config->dbTablePerms;
$this->DBGroup = $this->config->dbProfile;
$this->tempUseSoftDeletes = $this->config->dbSoftDeletePerms;
$this->tempReturnType = $this->config->dbReturnType;

9
app/Models/Aauth/UserModel.php

@ -78,16 +78,17 @@ class UserModel extends Model
*/
public function __construct($db = null, $validation = null, $config = null)
{
parent::__construct();
if (is_null($config))
{
$config = new AauthConfig();
}
$this->config = $config;
$this->config = $config;
$this->DBGroup = $this->config->dbProfile;
parent::__construct();
$this->table = $this->config->dbTableUsers;
$this->DBGroup = $this->config->dbProfile;
$this->tempUseSoftDeletes = $this->config->dbSoftDeleteUsers;
$this->tempReturnType = $this->config->dbReturnType;

Loading…
Cancel
Save