From e90692bc720cf4c520ee36c603395cf1e1b80b45 Mon Sep 17 00:00:00 2001
From: marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Date: Fri, 9 Jan 2009 14:21:48 +0000
Subject: Closes #668: Banning now works through a flag in the users_entity
 table. Database upgrade required. * Added ElggUser::isBanned(); * Added
 'banned' column to users_entity * Modified ban() and unban() * Modified pam
 functions to check $user->isBanned() * Modified login() to check
 $user->isBanned() * Modified sessions_init() to check isBanned() and destroy
 session accordingly * Modified profile views to highlight banned users and
 prevent menus for non-admin users.

git-svn-id: https://code.elgg.org/elgg/trunk@2554 36083f99-b078-4883-b0ff-0f9b5a30f544
---
 engine/schema/mysql.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'engine/schema/mysql.sql')

diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql
index 521cda27f..2c0dfa6aa 100644
--- a/engine/schema/mysql.sql
+++ b/engine/schema/mysql.sql
@@ -140,8 +140,8 @@ CREATE TABLE `prefix_users_entity` (
   `email` text NOT NULL,
   `language` varchar(6)  NOT NULL default '',
   `code` varchar(32) NOT NULL default '',
+  `banned` enum ('yes', 'no') NOT NULL default 'no',
   
-
   `last_action` int(11) NOT NULL default '0',
   `prev_last_action` int(11) NOT NULL default '0',
   `last_login` int(11) NOT NULL default '0',
-- 
cgit v1.2.3

