diff --git a/core/user.class.php b/core/user.class.php
index 0174b2d4..08519f0a 100644
--- a/core/user.class.php
+++ b/core/user.class.php
@@ -8,7 +8,6 @@ class User {
var $email;
var $join_date;
var $days_old;
- var $enabled;
var $admin;
public function User($row) {
@@ -17,7 +16,6 @@ class User {
$this->email = $row['email'];
$this->join_date = $row['joindate'];
$this->days_old = $row['days_old'];
- $this->enabled = ($row['enabled'] == 'Y');
$this->admin = ($row['admin'] == 'Y');
}
@@ -26,17 +24,6 @@ class User {
return ($this->id == $config->get_int('anon_id'));
}
- public function is_enabled() {
- return $this->enabled;
- }
-
- public function set_enabled($enabled) {
- global $database;
-
- $yn = $enabled ? 'Y' : 'N';
- $database->Execute("UPDATE users SET enabled=? WHERE id=?", array($yn, $this->id));
- }
-
public function is_admin() {
return $this->admin;
}
diff --git a/core/util.inc.php b/core/util.inc.php
index 66abc1b7..a84d8981 100644
--- a/core/util.inc.php
+++ b/core/util.inc.php
@@ -470,7 +470,7 @@ function _get_user() {
$user = null;
if(isset($_COOKIE["shm_user"]) && isset($_COOKIE["shm_session"])) {
$tmp_user = $database->get_user_session($_COOKIE["shm_user"], $_COOKIE["shm_session"]);
- if(!is_null($tmp_user) && $tmp_user->is_enabled()) {
+ if(!is_null($tmp_user)) {
$user = $tmp_user;
}
diff --git a/ext/upgrade/schema.xml b/ext/upgrade/schema.xml
index 23db4206..53db3704 100644
--- a/ext/upgrade/schema.xml
+++ b/ext/upgrade/schema.xml
@@ -38,7 +38,6 @@