summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-07-13 22:29:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-07-13 22:29:12 +0200
commit2015e32e3bd6922d0697a875ecdc810243c887f0 (patch)
treeb35758dd8f133f2d81e1f63e6a15177e230c5af9 /application/models
parent0d173835ee7f411cbfe39b8d0d3bb9dbd8a0acda (diff)
duser: add get_email()
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php9
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()) {