修正因自定义单据时漏掉权限变量
This commit is contained in:
parent
2d73dcdb2c
commit
58a2db7c6a
|
@ -25,7 +25,8 @@ class MailController extends DefaultController
|
|||
'simple_search_form' => 1,
|
||||
'table' => 'mail',
|
||||
'master_table' => 'mail',
|
||||
'create_btn' => 0,
|
||||
'create_btn' => 1,
|
||||
'access' => $this->access,
|
||||
];
|
||||
|
||||
$search = search_form([
|
||||
|
|
|
@ -20,6 +20,7 @@ class MenuController extends DefaultController
|
|||
'table' => 'menu',
|
||||
'master_table' => 'menu',
|
||||
'create_btn' => 1,
|
||||
'access' => $this->access,
|
||||
];
|
||||
|
||||
$search = search_form([
|
||||
|
|
|
@ -22,6 +22,7 @@ class OptionController extends DefaultController
|
|||
'table' => 'option',
|
||||
'master_table' => 'option',
|
||||
'create_btn' => 1,
|
||||
'access' => $this->access,
|
||||
];
|
||||
|
||||
$search = search_form([
|
||||
|
|
|
@ -24,6 +24,7 @@ class SettingController extends DefaultController
|
|||
'table' => 'setting',
|
||||
'master_table' => 'setting',
|
||||
'create_btn' => 1,
|
||||
'access' => $this->access,
|
||||
];
|
||||
|
||||
$search = search_form([
|
||||
|
|
|
@ -24,7 +24,8 @@ class SmsController extends DefaultController
|
|||
'simple_search_form' => 1,
|
||||
'table' => 'sms',
|
||||
'master_table' => 'sms',
|
||||
'create_btn' => 0,
|
||||
'create_btn' => 1,
|
||||
'access' => $this->access,
|
||||
];
|
||||
|
||||
$search = search_form([
|
||||
|
|
|
@ -24,7 +24,7 @@ class WidgetController extends DefaultController
|
|||
'simple_search_form' => 1,
|
||||
'table' => 'widget',
|
||||
'master_table' => 'widget',
|
||||
'create_btn' => 1,
|
||||
'create_btn' => 0,
|
||||
];
|
||||
|
||||
$search = search_form([
|
||||
|
|
|
@ -49,7 +49,7 @@ class AppServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
require_once __DIR__.'/../gdoo.php';
|
||||
require app_path('gdoo.php');
|
||||
|
||||
Paginator::defaultView('vendor/pagination/gdoo');
|
||||
Event::listen(StatementPrepared::class, function ($event) {
|
||||
|
|
|
@ -15,4 +15,4 @@ class EventDispatcher extends BaseEventDispatcher
|
|||
$event->setArguments($arguments);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue