-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: permissions for shop #1073
Conversation
|
||
export const Route = createFileRoute('/_auth/gameserver/$gameServerId')({ | ||
beforeLoad: async ({ context }) => { | ||
const session = await context.auth.getSession(); | ||
if (!hasPermission(session, ['READ_GAMESERVERS'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not that it matters really, but the hasPermission is typed based on PERMISSIONS from @takaro/apiclient, so it's not really needed to import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the READ_GAMESERVERS PERMISSION does not exist anymore or has no purpose?
No, is deleted as we discussed. Every user can now read basic info about gameservers inside a domain |
can we merge this? |
No description provided.