Merge pull request #12276 from owncloud/undelete-only-if-files-trashin-is-enabled
Only show undelete capability if files_trashbin is enabledremotes/origin/fix-10825
commit
dc9eaf59dc
@ -0,0 +1,32 @@ |
||||
<?php |
||||
/** |
||||
* Copyright (c) Lukas Reschke <lukas@owncloud.com> |
||||
* This file is licensed under the Affero General Public License version 3 or |
||||
* later. |
||||
* See the COPYING-README file. |
||||
*/ |
||||
|
||||
namespace OCA\Files_Trashbin; |
||||
|
||||
|
||||
/** |
||||
* Class Capabilities |
||||
* |
||||
* @package OCA\Files_Trashbin |
||||
*/ |
||||
class Capabilities { |
||||
|
||||
/** |
||||
* @return \OC_OCS_Result |
||||
*/ |
||||
public static function getCapabilities() { |
||||
return new \OC_OCS_Result(array( |
||||
'capabilities' => array( |
||||
'files' => array( |
||||
'undelete' => true, |
||||
), |
||||
), |
||||
)); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue