Skip to content

fix: Wrong require auth func#27

Merged
BretRen merged 1 commit intomainfrom
fix/wrong-require-auth-func
Apr 20, 2026
Merged

fix: Wrong require auth func#27
BretRen merged 1 commit intomainfrom
fix/wrong-require-auth-func

Conversation

@BretRen
Copy link
Copy Markdown
Member

@BretRen BretRen commented Apr 20, 2026

No description provided.

@coderabbitai

This comment was marked as off-topic.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request renames the authorization middleware to restrictToAuth and simplifies its logic by removing the explicit superuser check. A security issue was identified where unauthenticated users could potentially bypass authentication for update and delete operations on authentication collections; a code suggestion was provided to restrict this bypass to new record creation only.

Comment thread main.go
@BretRen BretRen merged commit da249cc into main Apr 20, 2026
1 check passed
@BretRen BretRen deleted the fix/wrong-require-auth-func branch April 20, 2026 03:42
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 this pull request may close these issues.

1 participant