New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 - error after logging in #1975
Comments
@robertillyes Do you have any fix for this yet? |
Hey there, just got it and fixed by cleaning all cookies / storage of the browser. Hope it can fix your problem too! |
Went in an edited the code manually on our installation, just returned false if no children were found for company in line 3588 in company.php as the query in MySql is incorrect for an empty IN clause. Not sure if it's the best solution or I'm missing something but it solved the issue for us. |
We just hit this as well. we had issues logging in as an admin. I believe the issue may lie in the previous check at 3573 of the is_siteadmin not working, as it shouldn't get to this point in our case of logging in as admin. |
Again, I had the issue, I didn’t want to hard fix by tweaking the code directly and the previous actions worked. I’m sure there is something to do with cookies or whatever. The problem didn’t appear again after cleaning FULLY the website data (all storages, cookies…). Give it a try and make a feedback please! Maybe deleting one item by one, so you can spot the issue. |
It is an unhandled situation there. If I have no child companies then the returned value is an empty array. The empty array is an invalid value for the IN operator. Clearing cookies didn't work for me tough. |
Again to be sure about it, did your clear the local storage and session storage? I didn’t change anything backend side to make it work again, until I cleared everything in the browser.. Worth trying it fully. |
Well I'm facing the same issue again, and cleaning doesn't fix it... Definitely a bug around there! Edit: |
`
`
So the work around here is
|
I don't think checking role is the issue here: I'll continue to check a bit or maybe just patch it like that for now as the global user is not initialized only for login and the right id is passed in
|
I change to $userid, work for root admin, but still got error for Client Administrator role. This role has has_capability |
I think it's because the That's a situation proving you that pure functions are really solving many issues and headaches :-). |
From commit SHA: be62f3d
To commit SHA: daccc30
The text was updated successfully, but these errors were encountered: