You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following this example : https://github.com/sulu/sulu-demo/pull/106/files
WebspaceSettingController.php uses request to check for permission with getSecurityContext() and the webspace parameter.
In this case the webspace parameter doesn't exist
Expected Behavior
Webspace parameter should be forwarded from the FromView with the "addRouterAttributesToFormRequest()" method.
Steps to Reproduce
You can follow the example https://github.com/sulu/sulu-demo/pull/106/files.
You should get an error 403 when accessing the tab in admin BO saying : "context 'sulu.webspaces..setting"
Between the 2 dots is supposed to be the webspace key of the webspace selected in the Back Office.
Possible Solutions
It seems to be in the javascript part of Sulu but i did not investigate it more because of a lack of knowledge here
The text was updated successfully, but these errors were encountered:
I digged a bit but had to take a break. I commented out the security stuff, but it's still not working. In my WebspaceSettingsController $request->query->all() is empty.
/*
* @Route("/webspace-settings/{id}", methods={"GET"}, name="get_webspace_settings")
* /
public function getAction(Request $request): Response
I made a bunde which is working only with a hardcoded webspace, since I'm not able to determine it - neither in Admin nor Controller.
Parts in code which access the webspace are commented out to make it work. Commenting in crashes the application at the current stage. So: no security, no more than one workspace to get it to run.
I really would like to get this to work. Please review!
Actual Behavior
When following this example : https://github.com/sulu/sulu-demo/pull/106/files
WebspaceSettingController.php uses request to check for permission with getSecurityContext() and the webspace parameter.
In this case the webspace parameter doesn't exist
Expected Behavior
Webspace parameter should be forwarded from the FromView with the "addRouterAttributesToFormRequest()" method.
Steps to Reproduce
You can follow the example https://github.com/sulu/sulu-demo/pull/106/files.
You should get an error 403 when accessing the tab in admin BO saying : "context 'sulu.webspaces..setting"
Between the 2 dots is supposed to be the webspace key of the webspace selected in the Back Office.
Possible Solutions
It seems to be in the javascript part of Sulu but i did not investigate it more because of a lack of knowledge here
The text was updated successfully, but these errors were encountered: