Commit b223e2e0 by lujunyi

药店管理药师

parent 2e0930c4
......@@ -159,7 +159,7 @@ protected function grid()
protected function form()
{
return Form::make(new PharmacistRepository(), function (Form $form) {
$pharmacyId = $form->pharmacy_id;
$pharmacyId = $form->model()->pharmacy_id;
if (Admin::user()->isRole('pharmacy') && Admin::user()->pharmacy_id != $pharmacyId) {
admin_exit(
Content::make()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment