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 permissions of all accessible file for versions #44362

Merged

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Mar 20, 2024

No description provided.

@artonge artonge added enhancement 3. to review Waiting for reviews feature: versions php Pull requests that update Php code labels Mar 20, 2024
@artonge artonge added this to the Nextcloud 29 milestone Mar 20, 2024
@artonge artonge self-assigned this Mar 20, 2024
@artonge artonge force-pushed the artonge/feat/support_migrating_versions_across_storages branch from 3bed871 to 975ef17 Compare March 20, 2024 15:23
@artonge artonge changed the base branch from artonge/feat/support_migrating_versions_across_storages to master March 20, 2024 15:27
@artonge artonge force-pushed the artonge/feat/check_permissions_of_all_nodes_for_versions branch 2 times, most recently from 9628bb1 to 7442ca3 Compare March 20, 2024 15:37
@Altahrim Altahrim mentioned this pull request Mar 21, 2024
@artonge artonge force-pushed the artonge/feat/check_permissions_of_all_nodes_for_versions branch from 7442ca3 to 865bcb2 Compare March 21, 2024 11:30
$sourceFile = array_pop($nodes);
if (!$sourceFile) {
throw new NotFoundException("Version file not accessible by current user");
$nodes = $this->rootFolder->getUserFolder($currentUserId)->getById($sourceFile->getId());

Check notice

Code scanning / Psalm

PossiblyNullArgument Note

Argument 1 of OCP\Files\Folder::getById cannot be null, possibly null value provided
…files

Forbid tagging readonly files

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge force-pushed the artonge/feat/check_permissions_of_all_nodes_for_versions branch from 865bcb2 to a15c0d6 Compare March 21, 2024 14:10
@artonge artonge merged commit ddb84f9 into master Mar 22, 2024
167 checks passed
@artonge artonge deleted the artonge/feat/check_permissions_of_all_nodes_for_versions branch March 22, 2024 19:35
@Altahrim Altahrim mentioned this pull request Mar 25, 2024
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 enhancement feature: versions php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants