diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-30 14:56:19 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-06-10 12:44:49 +0200 |
commit | 1b66db72d916a763b1c22613b9df5c42e93593a8 (patch) | |
tree | 8c53f3fe90b25e86ddc48b09cba4801d85de02de /lib/private/Repair.php | |
parent | a0d8702a1c168a178846ceba849b1521e6462b0f (diff) | |
download | nextcloud-server-1b66db72d916a763b1c22613b9df5c42e93593a8.tar.gz nextcloud-server-1b66db72d916a763b1c22613b9df5c42e93593a8.zip |
Repair job to fix permissions for avatars
Fixes #22978
On some older installations the permissions for the userRoot and the
avatars are not correct. This breaks since we now use the Node API in
the avatar code.
This repair job makes sure that the permissions are set correctly.
* Unit tests added
Diffstat (limited to 'lib/private/Repair.php')
-rw-r--r-- | lib/private/Repair.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Repair.php b/lib/private/Repair.php index 710bbbbaedf..bb2967d7e6e 100644 --- a/lib/private/Repair.php +++ b/lib/private/Repair.php @@ -29,6 +29,7 @@ namespace OC; use OC\Repair\AssetCache; +use OC\Repair\AvatarPermissions; use OC\Repair\CleanTags; use OC\Repair\Collation; use OC\Repair\DropOldJobs; @@ -134,6 +135,7 @@ class Repair implements IOutput{ new RepairInvalidShares(\OC::$server->getConfig(), \OC::$server->getDatabaseConnection()), new SharePropagation(\OC::$server->getConfig()), new RemoveOldShares(\OC::$server->getDatabaseConnection()), + new AvatarPermissions(\OC::$server->getDatabaseConnection()), ]; } |