aboutsummaryrefslogtreecommitdiffstats
path: root/include/RedDAV/RedBrowser.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2014-10-12 00:33:37 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2014-10-12 00:33:37 +0200
commitdc4593f5b54112093c94cc2ea39a4f2d138c1432 (patch)
tree99d0ae23b2b84390ae370874af437cec3419f46e /include/RedDAV/RedBrowser.php
parentfd00a24957fdb9413523b19a014658a0cc87b4bf (diff)
downloadvolse-hubzilla-dc4593f5b54112093c94cc2ea39a4f2d138c1432.tar.gz
volse-hubzilla-dc4593f5b54112093c94cc2ea39a4f2d138c1432.tar.bz2
volse-hubzilla-dc4593f5b54112093c94cc2ea39a4f2d138c1432.zip
Moved classes from reddav.php into own files.
Finished moving classes out from include/reddav.php into own files. Also continued with namespace for RedDAV. Improved some docs and added some todos and fixmes.
Diffstat (limited to 'include/RedDAV/RedBrowser.php')
-rw-r--r--include/RedDAV/RedBrowser.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php
index 6639250ae..1f2550ac1 100644
--- a/include/RedDAV/RedBrowser.php
+++ b/include/RedDAV/RedBrowser.php
@@ -1,10 +1,4 @@
<?php
-/**
- * RedMatrix - "The Network"
- *
- * @link http://github.com/friendica/red
- * @license http://opensource.org/licenses/mit-license.php The MIT License (MIT)
- */
namespace RedMatrix\RedDAV;
@@ -17,6 +11,9 @@ use Sabre\DAV;
* for the webbrowser.
*
* @extends \Sabre\DAV\Browser\Plugin
+ *
+ * @link http://github.com/friendica/red
+ * @license http://opensource.org/licenses/mit-license.php The MIT License (MIT)
*/
class RedBrowser extends DAV\Browser\Plugin {
@@ -33,6 +30,8 @@ class RedBrowser extends DAV\Browser\Plugin {
* $enablePost will be activated through set_writeable() in a later stage.
* At the moment the write_storage permission is only valid for the whole
* folder. No file specific permissions yet.
+ * @todo disable enablePost by default and only activate if permissions
+ * grant edit rights.
*
* Disable assets with $enableAssets = false. Should get some thumbnail views
* anyway.
@@ -52,7 +51,11 @@ class RedBrowser extends DAV\Browser\Plugin {
* call the following function to decide whether or not to show web elements
* which include writeable objects.
*
- * @todo Maybe this can be solved with some $server->subscribeEvent()?
+ * @fixme It only disable/enable the visible parts. Not the POST handler
+ * which handels the actual requests when uploading files or creating folders.
+ *
+ * @todo Maybe this whole way of doing this can be solved with some
+ * $server->subscribeEvent().
*/
public function set_writeable() {
if (! $this->auth->owner_id) {