Fix sql phpunit regression
This commit is contained in:
parent
f3a5331095
commit
016dbd39ee
@ -86,5 +86,3 @@ CREATE TABLE IF NOT EXISTS llx_establishment (
|
||||
status tinyint DEFAULT 1
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
ALTER TABLE llx_user ADD COLUMN employee tinyint DEFAULT 0 AFTER ref_int;
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ create table llx_user
|
||||
ref_ext varchar(50), -- reference into an external system (not used by dolibarr)
|
||||
ref_int varchar(50), -- reference into an internal system (deprecated)
|
||||
|
||||
employee tinyint DEFAULT 0, -- 1 if user is an employee
|
||||
employee tinyint DEFAULT 1, -- 1 if user is an employee
|
||||
|
||||
datec datetime,
|
||||
tms timestamp,
|
||||
|
||||
@ -126,13 +126,17 @@ class User extends CommonObject
|
||||
{
|
||||
$this->db = $db;
|
||||
|
||||
// Preference utilisateur
|
||||
// User preference
|
||||
$this->liste_limit = 0;
|
||||
$this->clicktodial_loaded = 0;
|
||||
|
||||
// For cache usage
|
||||
$this->all_permissions_are_loaded = 0;
|
||||
$this->admin=0;
|
||||
|
||||
|
||||
// Force some default values
|
||||
$this->admin = 0;
|
||||
$this->employee = 1;
|
||||
|
||||
$this->conf = new stdClass();
|
||||
$this->rights = new stdClass();
|
||||
$this->rights->user = new stdClass();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user