Commit 4ce65850fb0e5f9bf813e7920070fc2cbd405c19

Authored by Alexey Boroda
1 parent cc04f587

-oreders fiiiix

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
controllers/OrderController.php
... ... @@ -413,7 +413,9 @@
413 413 if (!empty($user->permissions)) {
414 414 $permissions = $user->permissions;
415 415 if (!in_array($model->label, $user->permissions->labelsArray)) {
416   - throw new ForbiddenHttpException();
  416 + if (!empty($model->label)) {
  417 + throw new ForbiddenHttpException();
  418 + }
417 419 }
418 420 } else {
419 421 $permissions = Permissions::getDefault();
... ...