Fixed not finding unit sometimes in PreorderApi/submitPreorder

This commit is contained in:
Frank Schubert
2023-10-03 15:19:44 +02:00
parent a6aa87a5ee
commit acee68c6c3
4 changed files with 15 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
<?php
x<?php
/**
* Description of UserController
@@ -205,9 +205,14 @@ class UserController extends mfBaseController
if (is_array($r->preorder_networks) && count($r->preorder_networks)) {
$pn->value(json_encode($r->preorder_networks));
$pn->save();
$user->permissions->canPreorder = true;
} else {
$pn->delete();
}
//XXX - set all can permissions true
}
$this->layout()->setFlash("Benutzer gespeichert.", "success");