diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 15:52:18 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 15:52:18 +0000 |
commit | b0b84c911c200fd355b55e8b701a57baa8e62477 (patch) | |
tree | f5db015da4a56d6a6ae82c8cb5d909efd33636a3 /engine/lib | |
parent | 4a92ecbc2d4ece4e2c2e5d0b7a7f8b2a6190a285 (diff) | |
download | elgg-b0b84c911c200fd355b55e8b701a57baa8e62477.tar.gz elgg-b0b84c911c200fd355b55e8b701a57baa8e62477.tar.bz2 |
Refs #237: Added option, now just needs a search listing banned users.
Depends #243
git-svn-id: https://code.elgg.org/elgg/trunk@1904 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/admin.php | 1 | ||||
-rw-r--r-- | engine/lib/entities.php | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php index e8ec019ac..52bf3e1f1 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -46,6 +46,7 @@ extend_elgg_admin_page('admin/main_opt/plugins', 'admin/main', 999); // Always last register_action('admin/user/ban', false, "", true); + register_action('admin/user/unban', false, "", true); register_action('admin/user/delete', false, "", true); register_action('admin/user/resetpassword', false, "", true);
register_action('admin/user/makeadmin', false, "", true); diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 31129fbad..771627b89 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -86,6 +86,7 @@ $this->attributes['access_id'] = 0; $this->attributes['time_created'] = ""; $this->attributes['time_updated'] = ""; + $this->attributes['enabled'] = ""; // There now follows a bit of a hack /* Problem: To speed things up, some objects are split over several tables, this means that it requires @@ -674,6 +675,19 @@ } /** + * Is this entity enabled? + * + * @return boolean + */ + public function isEnabled() + { + if ($this->enabled) + return true; + + return false; + } + + /** * Delete this entity. */ public function delete() |