added admin function: add user
This commit is contained in:
@@ -57,7 +57,7 @@ class Starter
|
||||
|
||||
////
|
||||
// dbInterface
|
||||
///
|
||||
////
|
||||
|
||||
/** Load a Start from the db via an id
|
||||
*
|
||||
@@ -117,7 +117,7 @@ class Starter
|
||||
{
|
||||
// - if the id is already set it *has* to be already in the DB hence we don't add it
|
||||
// - the logged in user must have wardship over the starter
|
||||
if (isset($this->id) && !participo::isWardOf($this->userId)) {
|
||||
if (isset($this->id) || !participo::isWardOf($this->userId)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user