diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-07-13 22:29:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-07-13 22:29:12 +0200 |
commit | 2015e32e3bd6922d0697a875ecdc810243c887f0 (patch) | |
tree | b35758dd8f133f2d81e1f63e6a15177e230c5af9 /application/models | |
parent | 0d173835ee7f411cbfe39b8d0d3bb9dbd8a0acda (diff) |
duser: add get_email()
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r-- | application/models/muser.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/application/models/muser.php b/application/models/muser.php index 29c5a453f..947b87d97 100644 --- a/application/models/muser.php +++ b/application/models/muser.php @@ -108,6 +108,15 @@ class Muser extends CI_Model { return $this->session->userdata("userid"); } + function get_email($userid) + { + if (!$this->duser->is_implemented("get_email")) { + return false; + } + + return $this->duser->get_email($userid); + } + function require_access() { if ($this->logged_in()) { |