diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-12-16 17:39:15 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-12-16 17:39:15 +0100 |
commit | dc641943d9245b371eca1928a64bcadfe72f9cf6 (patch) | |
tree | 30d17d1843a1e683b0455ed5422b749cdf5136a5 /files/index.php | |
parent | 65214bed0c1c6058a1178b1501bf4f227ec471dc (diff) | |
download | nextcloud-server-dc641943d9245b371eca1928a64bcadfe72f9cf6.tar.gz nextcloud-server-dc641943d9245b371eca1928a64bcadfe72f9cf6.zip |
fix some display issues for readonly folders
Diffstat (limited to 'files/index.php')
-rw-r--r-- | files/index.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/files/index.php b/files/index.php index 4b3bbd1bfd4..7e156130d8e 100644 --- a/files/index.php +++ b/files/index.php @@ -97,6 +97,7 @@ $tmpl = new OC_Template( "files", "index", "user" ); $tmpl->assign( "fileList", $list->fetchPage() ); $tmpl->assign( "breadcrumb", $breadcrumbNav->fetchPage() ); $tmpl->assign( 'dir', $dir); +$tmpl->assign( 'readonly', !OC_Filesystem::is_writeable($dir)); $tmpl->assign( "files", $files ); $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign( 'uploadMaxHumanFilesize', OC_Helper::humanFileSize($maxUploadFilesize)); |