WIP Preorderlogistics
This commit is contained in:
@@ -153,14 +153,16 @@ class UserController extends mfBaseController
|
||||
$user->mobile = NULL;
|
||||
}
|
||||
|
||||
if ($r->address_id) {
|
||||
if ($this->isAdmin()) {
|
||||
if ($this->isAdmin()) {
|
||||
if ($r->address_id) {
|
||||
$user->address_id = intval($r->address_id);
|
||||
//var_dump($user);exit;
|
||||
$address = new Address($user->address_id);
|
||||
if (!$address->id) {
|
||||
throw new Exception("Unbekannte Firma/Person");
|
||||
}
|
||||
} else {
|
||||
$user->address_id = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -198,6 +200,11 @@ class UserController extends mfBaseController
|
||||
$user->permissions->preorderfront = "false";
|
||||
}
|
||||
|
||||
if ($r->preorderlogistics == "true") {
|
||||
$user->permissions->preorderlogistics = "true";
|
||||
} else {
|
||||
$user->permissions->preorderlogistics = "false";
|
||||
}
|
||||
|
||||
|
||||
// set can permissions
|
||||
|
||||
Reference in New Issue
Block a user