summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-24 21:35:03 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-24 21:35:03 -0400
commit6f58eca5349d8c82f7bba3a7c0f92c0caa8e3749 (patch)
tree82d565bb0efe6abc135388c63b20f5c820b55ae2 /apps/files/index.php
parentede2b8a55f640f7ad33fb73f78e73bbee2f64a72 (diff)
downloadnextcloud-server-6f58eca5349d8c82f7bba3a7c0f92c0caa8e3749.tar.gz
nextcloud-server-6f58eca5349d8c82f7bba3a7c0f92c0caa8e3749.zip
Change read only check to isCreatable
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index 79bed8e357e..225e2d7ac13 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -93,7 +93,7 @@ $tmpl = new OCP\Template( 'files', 'index', 'user' );
$tmpl->assign( 'fileList', $list->fetchPage(), false );
$tmpl->assign( 'breadcrumb', $breadcrumbNav->fetchPage(), false );
$tmpl->assign( 'dir', $dir);
-$tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir.'/'));
+$tmpl->assign( 'isCreatable', OC_Filesystem::isCreatable($dir.'/'));
$tmpl->assign( 'files', $files );
$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));