Commit a5ff53ac authored by Leigh Stoller's avatar Leigh Stoller

Add method to get the admin email for a user.

parent d697bd57
......@@ -363,6 +363,16 @@ class User
return $this->tempdata;
}
function adminEmail() {
global $TBMAIL_APPROVAL;
return
($this->isAPT() ? "aptlab-approval@aptlab.net" :
($this->isCloud() ? "cloudlab-approval@cloudlab.us" :
($this->isPNet() ? "phantomnet-approval@phantomnet.org" :
$TBMAIL_APPROVAL)));
}
#
# Class function to create new user and return object.
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment