Skip to content
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

Wrong permissions on refresh (Vapor/Octane) #2401

Closed
sweebee opened this issue Apr 13, 2023 · 3 comments · Fixed by #2403
Closed

Wrong permissions on refresh (Vapor/Octane) #2401

sweebee opened this issue Apr 13, 2023 · 3 comments · Fixed by #2403

Comments

@sweebee
Copy link

sweebee commented Apr 13, 2023

When creating a new role with permissions and assign it to a user, the user randomly gets a 403 message.

The issue seems that i'm using Octane on Laravel Vapor. When you refresh your screen or navigate to another screen you might end up on a different lambda server which still has old cached permissions. after a re-deploy it works fine. So a lamba server must have the permissions still in the memory.

Laravel version: v10.7.1
Permission version: v5.10.0
PHP version: 8.1
Database version: MySQL 8.0.32

To Reproduce
Create a new role with permissions and assign it to a user, login as that user.

@sweebee sweebee changed the title Wrong permissions on refresh Wrong permissions on refresh (Vapor/Octane) Apr 13, 2023
@erikn69
Copy link
Contributor

erikn69 commented Apr 13, 2023

#2322 (comment)

@parallels999
Copy link
Contributor

On #2322 (comment) everything was tested in octane, It would be good to do a test with a minimal installation

@spatie-bot
Copy link

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants