Commit 782b54d2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add IsLeader($user) method to project class.

parent 142f2cc7
<?php
#
# Copyright (c) 2006-2016 University of Utah and the Flux Group.
# Copyright (c) 2006-2017 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.
......
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