Call is_writable explicitly on folders for readonly check
This commit is contained in:
parent
e74f4b406f
commit
e03c5f39a8
|
@ -92,7 +92,7 @@ $tmpl = new OCP\Template( 'files', 'index', 'user' );
|
|||
$tmpl->assign( 'fileList', $list->fetchPage() );
|
||||
$tmpl->assign( 'breadcrumb', $breadcrumbNav->fetchPage() );
|
||||
$tmpl->assign( 'dir', $dir);
|
||||
$tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir));
|
||||
$tmpl->assign( 'readonly', !OC_Filesystem::is_writable($dir.'/'));
|
||||
$tmpl->assign( 'files', $files );
|
||||
$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
|
||||
$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
|
||||
|
|
Loading…
Reference in New Issue