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

[26] check the username when doing external storage session auth #38281

Merged
merged 1 commit into from
May 15, 2023

Conversation

icewind1991
Copy link
Member

Backport of #38265

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 26.0.2 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 15:03
@icewind1991 icewind1991 changed the title check the username when doing external storage session auth [26] check the username when doing external storage session auth May 15, 2023
@@ -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 de77a03 into stable26 May 15, 2023
@icewind1991 icewind1991 deleted the session-auth-check-username-26 branch May 15, 2023 21:48
@blizzz blizzz mentioned this pull request May 16, 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