Skip to content
GitLab
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
782b54d2
Commit
782b54d2
authored
Jan 05, 2017
by
Leigh B Stoller
Browse files
Add IsLeader($user) method to project class.
parent
142f2cc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/project_defs.php
View file @
782b54d2
<?php
#
# Copyright (c) 2006-201
6
University of Utah and the Flux Group.
# Copyright (c) 2006-201
7
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -481,6 +481,14 @@ class Project
}
return
$leader
;
}
# Boolean test.
function
IsLeader
(
$user
)
{
$leader
=
$this
->
GetLeader
();
if
(
$user
->
SameUser
(
$leader
))
{
return
1
;
}
return
0
;
}
#
# Add *new* member to project group; starts out with trust=none.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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