diff --git a/controllers/OrderController.php b/controllers/OrderController.php index 38ef18b..a8e1fbd 100755 --- a/controllers/OrderController.php +++ b/controllers/OrderController.php @@ -413,7 +413,9 @@ if (!empty($user->permissions)) { $permissions = $user->permissions; if (!in_array($model->label, $user->permissions->labelsArray)) { - throw new ForbiddenHttpException(); + if (!empty($model->label)) { + throw new ForbiddenHttpException(); + } } } else { $permissions = Permissions::getDefault(); -- libgit2 0.21.4