Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
ca0fb64d
Commit
ca0fb64d
authored
May 25, 2016
by
Leigh B Stoller
Browse files
Add IsActive() and PendingMembership() to get the list of projects user is
waiting for approval on.
parent
a8e5aba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/user_defs.php
View file @
ca0fb64d
...
...
@@ -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.
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment