I actually tried global & single actions on a newly created lumber project, and I’m not able to reproduce your issue. Smart actions (By default) should be accessible for users, and could be specified to restrict access using your collection settings (under the Smart Actions tabs).
In order to help you with this, could you provide me the route,the forest part of the file declaring the smart actions and the version of forest-express-sequelize/mongoose you are using ?
Ok. By any chances, do you have the smart actions code ?
A potential issue I see would be that you are using permissionMiddlewareCreator.smartAction() without any permissions attached in the Smart Actions section, could you try disabling this middleware and check if that works on your side ?
Thanks, it could be useful information. But can you help to elaborate which file or which service I should disable the middleware? And how to disable middleware? I’m confusing.
The file should be located in your routes directory. Without a stacktrace I cannot point you to the right file though, but depending on the collection you are trying to run the smart action on it should be pretty easy to locate.
Disabling the middleware means just to remove the permissionMiddlewareCreator.smartAction() call if present, just as a quick test to show if the issue come from this or not. If it’s not present, then the issue does not come from that part.
If that’s possible on your side, you could try following the update to v6 documentation. A few things have been released related to smart actions (Even if I don’t think any is related to your specific issue)
Make sure that you don’t have anything in the “Smart Actions” tab in the collection settings that could conflict with having this smart actions displayed
Share here the smart actions definitions so I can reproduce the issue on my end
Also, did you try changing the smart action that is visible from single to global ?
Still trying to find a way to reproduce your issue, so don’t hesitate to give as much details as possible so I can reproduce on my side
If that’s possible on your side, you could try following the update to v6 documentation. A few things have been released related to smart actions (Even if I don’t think any is related to your specific issue)
Did you try with my forest-express-sequelize version 5.7.0? If you didn’t reproduce with this old version, it means that the version isn’t the root cause, right?
I don’t mind to share with you. But this is a public thread so I don’t want to leak anything here. I sent an email to Philippe and Louis already, it would be nice if I can add you in that email as well so I can share the codebase.