Commit f8a93b90 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add IsNonLocal() predicate.

parent 1c428380
...@@ -349,6 +349,10 @@ class User ...@@ -349,6 +349,10 @@ class User
function isAPT() { return $this->genesis() == "aptlab" ? 1 : 0; } function isAPT() { return $this->genesis() == "aptlab" ? 1 : 0; }
function isCloud() { return $this->genesis() == "cloudlab" ? 1 : 0; } function isCloud() { return $this->genesis() == "cloudlab" ? 1 : 0; }
function IsNonLocal() {
return ($this->field("nonlocal_id") ? 1 : 0);
}
# Temporary data storage ... useful. # Temporary data storage ... useful.
function SetTempData($value) { function SetTempData($value) {
$this->tempdata = $value; $this->tempdata = $value;
......
Supports Markdown
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