added admin function: add user

This commit is contained in:
marko
2023-03-27 05:15:18 +02:00
parent 3f76d82897
commit 4f2a05b9eb
16 changed files with 380 additions and 122 deletions

View File

@@ -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;
}