Commit ca0fb64d authored by Leigh Stoller's avatar Leigh Stoller

Add IsActive() and PendingMembership() to get the list of projects user is

waiting for approval on.
parent a8e5aba4
......@@ -354,7 +354,9 @@ class User
function IsNonLocal() {
return ($this->field("nonlocal_id") ? 1 : 0);
}
function IsActive() {
return ($this->status() == TBDB_USERSTATUS_ACTIVE ? 1 : 0);
}
# Temporary data storage ... useful.
function SetTempData($value) {
$this->tempdata = $value;
......@@ -1321,6 +1323,15 @@ class User
return $result;
}
#
# Return list of unapproved membership in projects. This will not
# include projects for which the user is the leader, that is a
# different set.
#
function PendingMembership() {
return $this->ProjectMembershipList(TBDB_TRUSTSTRING_NONE);
}
#
# First approved project.
#
......
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