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

check the username when doing external storage session auth #38265

Merged
merged 1 commit into from
May 15, 2023

Conversation

icewind1991
Copy link
Member

No description provided.

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label May 15, 2023
@icewind1991 icewind1991 added this to the Nextcloud 27 milestone May 15, 2023
@icewind1991 icewind1991 requested review from a team, ArtificialOwl, Fenn-CS and come-nc and removed request for a team May 15, 2023 13:00
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

LGTM but didnt test

@@ -57,6 +58,10 @@
throw new InsufficientDataForMeaningfulAnswerException('No session credentials saved');
}

if ($credentials->getUID() !== $user->getUID()) {

Check notice

Code scanning / Psalm

PossiblyNullReference

Cannot call method getUID on possibly null value
@icewind1991 icewind1991 merged commit f1a1361 into master May 15, 2023
@icewind1991 icewind1991 deleted the session-auth-check-username branch May 15, 2023 21:48
@blizzz blizzz mentioned this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants