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

[stable28] Forbid tagging readonly files #44298

Merged
merged 2 commits into from Mar 21, 2024
Merged

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 19, 2024

Backport of PR #44297

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@backportbot backportbot bot requested a review from come-nc March 19, 2024 09:08
@backportbot backportbot bot added the 3. to review Waiting for reviews label Mar 19, 2024
@backportbot backportbot bot added this to the Nextcloud 28.0.4 milestone Mar 19, 2024
@@ -50,10 +51,19 @@
$tagMapper,
$userSession,
$groupManager,
function ($name) {
function ($name): bool {

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
$nodes = \OC::$server->getUserFolder()->getById((int)$name);
return !empty($nodes);
}
},
function ($name): bool {

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
}
},
function ($name): bool {
$nodes = \OC::$server->getUserFolder()->getById((int)$name);

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OC\Server::getUserFolder has been marked as deprecated
}
},
function ($name): bool {
$nodes = \OC::$server->getUserFolder()->getById((int)$name);

Check notice

Code scanning / Psalm

PossiblyNullReference Note

Cannot call method getById on possibly null value
@@ -68,7 +78,8 @@
$tagMapper,
$userSession,
$groupManager,
$entityExistsFunction
$entityExistsFunction,
fn ($name) => true,

Check notice

Code scanning / Psalm

MissingClosureParamType Note

Parameter $name has no provided type
@come-nc come-nc requested review from nickvergessen, sorbaugh, a team and ArtificialOwl and removed request for a team March 19, 2024 10:24
@come-nc come-nc mentioned this pull request Mar 19, 2024
4 tasks
@Altahrim Altahrim mentioned this pull request Mar 21, 2024
9 tasks
@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 21, 2024
@come-nc come-nc merged commit 1578814 into stable28 Mar 21, 2024
53 checks passed
@come-nc come-nc deleted the backport/44297/stable28 branch March 21, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants