diff options
author | Björn Schießle <bjoern@schiessle.org> | 2014-12-19 19:04:44 +0100 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2014-12-19 19:04:44 +0100 |
commit | 8164415b45386cb87e05e6e50cf4b8f3128b2e69 (patch) | |
tree | 1edbf481b6596533be0813d7639277fc9a92b98b /lib/public | |
parent | ad6814f9207ac50ad9e3e6f157ec9746c81392e9 (diff) | |
parent | 24993280edcf66f9daa5a5e82428fefef4a3ab56 (diff) | |
download | nextcloud-server-8164415b45386cb87e05e6e50cf4b8f3128b2e69.tar.gz nextcloud-server-8164415b45386cb87e05e6e50cf4b8f3128b2e69.zip |
Merge pull request #12749 from owncloud/server2server-sharing-ng
server to server sharing next generation
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share_backend.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/share_backend.php b/lib/public/share_backend.php index 6ab234aecf0..1ae63d4c1db 100644 --- a/lib/public/share_backend.php +++ b/lib/public/share_backend.php @@ -65,4 +65,16 @@ interface Share_Backend { */ public function formatItems($items, $format, $parameters = null); + /** + * Check if a given share type is allowd by the back-end + * + * @param int $shareType share type + * @return boolean + * + * The back-end can enable/disable specific share types. Just return true if + * the back-end doesn't provide any specific settings for it and want to allow + * all share types defined by the share API + */ + public function isShareTypeAllowed($shareType); + } |