Fixed not finding unit sometimes in PreorderApi/submitPreorder
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user