Skip to content

fix(files_reminders): Only allow updating reminders if the file is accessible - #50711

Merged
AndyScherzinger merged 3 commits into
masterfrom
fix/reminder-node-access
Feb 20, 2025
Merged

fix(files_reminders): Only allow updating reminders if the file is accessible#50711
AndyScherzinger merged 3 commits into
masterfrom
fix/reminder-node-access

Conversation

@Pytal

@PytalPytal commented Feb 7, 2025

Copy link
Copy Markdown
Member

Summary

No changes should be made for inaccessible files

Checklist

@PytalPytal added this to the Nextcloud 32 milestone Feb 7, 2025
@Pytal
Pytal requested a review from a teamFebruary 7, 2025 00:15
@PytalPytal self-assigned this Feb 7, 2025
@Pytal
Pytal requested review from ArtificialOwl, artonge and sorbaugh and removed request for a teamFebruary 7, 2025 00:15
@Pytal
Pytal requested a review from come-ncFebruary 10, 2025 17:09
Pytaland others added 3 commits February 20, 2025 15:34
…cessible
Signed-off-by: Christopher Ng <chrng8@gmail.com>
…ng reminders
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger
AndyScherzinger merged commit 047378e into masterFeb 20, 2025
@AndyScherzinger
AndyScherzinger deleted the fix/reminder-node-access branch February 20, 2025 16:42
* @throws DoesNotExistException
*/
public function getDueForUser(IUser $user, int $fileId): RichReminder {
$this->checkNode($user, $fileId);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This causes a getFirstNodeById for every file in a folder when doing propfind which will lead to some pretty bad performance regression.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@Pytal@icewind1991@artonge@come-nc@AndyScherzinger@skjnldsv