-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[stable25] Forbid tagging readonly files #44309
Conversation
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
bcddd21
to
4016c22
Compare
@@ -60,10 +60,19 @@ | |||
$tagMapper, | |||
$userSession, | |||
$groupManager, | |||
function ($name) { | |||
function ($name): bool { |
Check notice
Code scanning / Psalm
MissingClosureParamType Note
$nodes = \OC::$server->getUserFolder()->getById((int)$name); | ||
return !empty($nodes); | ||
} | ||
}, | ||
function ($name): bool { |
Check notice
Code scanning / Psalm
MissingClosureParamType Note
} | ||
}, | ||
function ($name): bool { | ||
$nodes = \OC::$server->getUserFolder()->getById((int)$name); |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
} | ||
}, | ||
function ($name): bool { | ||
$nodes = \OC::$server->getUserFolder()->getById((int)$name); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
@@ -77,7 +86,8 @@ | |||
$tagMapper, | |||
$userSession, | |||
$groupManager, | |||
$entityExistsFunction | |||
$entityExistsFunction, | |||
fn ($name) => true, |
Check notice
Code scanning / Psalm
MissingClosureParamType Note
25 supports 7.4 Signed-off-by: Côme Chilliet <[email protected]>
4016c22
to
43865ac
Compare
/backport! to stable24 |
/backport! to stable23 |
Can someone restart drone job? Failures are weird. |
All good. Needs a force merge because 25 is EOL |
Backport of #44299 / #44297
Warning, This backport's changes differ from the original and might be incomplete⚠️ Todo
Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.