KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Permission error in new KR/Dashboard #2854

Closed GHSix opened this topic on on Oct 25, 2022 - 2 comments

GHSix commented on Oct 25, 2022

Today I just uncommented an ->enabled(function($request) call I had working before and it is given the following error now:

ErrorException: Closure::bind() expects at least 2 parameters, 1 given in /www/dev/koolreport/vendor/koolreport/dashboard/TEnabledPermit.php:18 Stack trace: #0 [internal function]: koolreport\dashboard\Application::koolreport\dashboard\{closure}(2, 'Closure::bind()...', '/www/dev/koolre...', 18, Array) #1 /www/dev/koolreport/vendor/koolreport/dashboard/TEnabledPermit.php(18): Closure::bind(Object(Users\UsersBoard)) #2 /www/dev/koolreport/dashboard/App.php(195): koolreport\dashboard\Dashboard->enabled(Object(Closure)) #3 /www/dev/koolreport/vendor/koolreport/dashboard/Application.php(414): App->sidebar() #4 /www/dev/koolreport/vendor/koolreport/dashboard/pages/Main.php(58): koolreport\dashboard\Application->getSidebar() #5 /www/dev/koolreport/vendor/koolreport/dashboard/pages/Main.php(63): koolreport\dashboard\pages\Main->sidebar() #6 /www/dev/koolreport/vendor/koolreport/dashboard/TEvent.php(32): koolreport\dashboard\pages\Main->beforeOnInit(NULL) #7 /www/dev/koolreport/vendor/koolreport/dashboard/PropModel.php(35): koolreport\dashboard\PropModel->fireEvent('Init') #8 /www/dev/koolreport/vendor/koolreport/dashboard/Page.php(119): koolreport\dashboard\PropModel->init() #9 /www/dev/koolreport/vendor/koolreport/appstack/dashboard/Application.view.php(24): koolreport\dashboard\Page->view() #10 /www/dev/koolreport/vendor/koolreport/core/src/KoolReport.php(572): include('/www/dev/koolre...') #11 /www/dev/koolreport/vendor/koolreport/dashboard/theme/TRender.php(12): koolreport\KoolReport->render('Application') #12 /www/dev/koolreport/vendor/koolreport/dashboard/Application.php(361): koolreport\appstack\dashboard\Application->render() #13 /www/dev/koolreport/vendor/koolreport/dashboard/Application.php(300): koolreport\dashboard\Application->view() #14 /www/dev/koolreport/vendor/koolreport/dashboard/Application.php(231): koolreport\dashboard\Application->handle(Object(koolreport\dashboard\Request)) #15 /www/dev/koolreport/dashboard/index.php(44): koolreport\dashboard\Application->run() #16 {main}
KoolReport commented on Oct 26, 2022

It seems a bug, Could you please go to the TEnabledPermit.php and change the bind($this) to bindTo($this). It will solve the issue. I have told dev.team to fix this issue in next version. Thank you very much.

GHSix commented on Oct 26, 2022

It fixed the Permission.

Thank you.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed

Dashboard