diff options
author | RedMatrix <info@friendica.com> | 2014-10-13 09:59:01 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-10-13 09:59:01 +1100 |
commit | b1ea4f9e1161d4edf3b8c858df91ffbce65199bb (patch) | |
tree | 0018ab3d0460d1ce2e0b17061e20fb10776c58af /include/RedDAV/RedBrowser.php | |
parent | 1dfd74fe3959a8f76abf1ac8c66f2b4f2649e128 (diff) | |
parent | 5aae5862f285d9340b37abfb3c390c2816692c6d (diff) | |
download | volse-hubzilla-b1ea4f9e1161d4edf3b8c858df91ffbce65199bb.tar.gz volse-hubzilla-b1ea4f9e1161d4edf3b8c858df91ffbce65199bb.tar.bz2 volse-hubzilla-b1ea4f9e1161d4edf3b8c858df91ffbce65199bb.zip |
Merge pull request #636 from dawnbreak/RedDAV
Moved classes from reddav.php into own files.
Diffstat (limited to 'include/RedDAV/RedBrowser.php')
-rw-r--r-- | include/RedDAV/RedBrowser.php | 17 |
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) { |