|
|
|
@ -297,7 +297,7 @@ class ProductController extends AdminController |
|
|
|
} |
|
|
|
|
|
|
|
if ($form->isCreating()) { |
|
|
|
if (!Admin::user()->publish_type || !in_array($form->type, Admin::user()->publish_type)) { |
|
|
|
if (is_null($form->type) || !Admin::user()->publish_type || !in_array($form->type, Admin::user()->publish_type)) { |
|
|
|
return $form->response()->error('对不起,你没有此类产品的发布、编辑权限'); |
|
|
|
} |
|
|
|
} else if ($form->isEditing()) { |
|
|
|
|