X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fcreate_coy.php;h=684369c5e618245d4ffceafc624c7c69279a2ce1;hb=2b2cbcfe6a448536113966cbb11b79eda73db5ab;hp=eec636487124d29189ea3176a75d149372529ad3;hpb=e8ae3516539a520338117f25d401c0fc234973a4;p=fa-stable.git diff --git a/admin/create_coy.php b/admin/create_coy.php index eec63648..684369c5 100644 --- a/admin/create_coy.php +++ b/admin/create_coy.php @@ -9,7 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 20; +$page_security = 'SA_CREATECOMPANY'; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); @@ -163,7 +163,7 @@ function handle_delete() $id = $_GET['id']; $cdir = $comp_path.'/'.$id; - @flush_dir($cdir); + @flush_dir($cdir, true); if (!rmdir($cdir)) { display_error(_("Cannot remove company data directory ") . $cdir);