From cffc879f04e75e877690fd967272ea98d0bb1f90 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 27 May 2015 14:39:54 +0000 Subject: [PATCH] fix not being able to mount /etemplates (no mount button), once it was unmounted and there are modified templates --- filemanager/inc/class.filemanager_admin.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_admin.inc.php b/filemanager/inc/class.filemanager_admin.inc.php index 78b6a8aa4d..b0c6997d7b 100644 --- a/filemanager/inc/class.filemanager_admin.inc.php +++ b/filemanager/inc/class.filemanager_admin.inc.php @@ -202,7 +202,8 @@ class filemanager_admin extends filemanager_ui 'everyone' => lang('Everyone'), ); // show [Mount /etemplates] button for admin, if not already mounted and available - $readonlys['etemplates'] = !class_exists('\EGroupware\Stylite\Vfs\Merge\StreamWrapper') || egw_vfs::file_exists('/etemplates') || + $readonlys['etemplates'] = !class_exists('\EGroupware\Stylite\Vfs\Merge\StreamWrapper') || + ($fs_tab=egw_vfs::mount($url)) && isset($fs_tab['/etemplates']) || !isset($GLOBALS['egw_info']['user']['apps']['admin']); //_debug_array($content);