Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
4e297d7a
Unverified
Commit
4e297d7a
authored
4 years ago
by
Morris Jobke
Committed by
Julius Härtl
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use constant instead of magic number
Signed-off-by:
Morris Jobke
<
hey@morrisjobke.de
>
parent
cb2f5a82
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files/lib/Service/OwnershipTransferService.php
+1
-1
1 addition, 1 deletion
apps/files/lib/Service/OwnershipTransferService.php
with
1 addition
and
1 deletion
apps/files/lib/Service/OwnershipTransferService.php
+
1
−
1
View file @
4e297d7a
...
...
@@ -194,7 +194,7 @@ class OwnershipTransferService {
$output
->
writeln
(
'Validating quota'
);
$size
=
$view
->
getFileInfo
(
$sourcePath
,
false
)
->
getSize
(
false
);
$freeSpace
=
$view
->
free_space
(
$destinationUid
.
'/files/'
);
if
(
$size
>
$freeSpace
&&
$freeSpace
!==
-
2
)
{
if
(
$size
>
$freeSpace
&&
$freeSpace
!==
FileInfo
::
SPACE_UNKNOWN
)
{
$output
->
writeln
(
'<error>Target user does not have enough free space available.</error>'
);
throw
new
\Exception
(
'Execution terminated.'
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment