Admin can only edit the file.

pull/2487/head
jmontoyaa 9 years ago
parent b0985ab0cd
commit 3c97672b52
  1. 3
      plugin/edit_htaccess/plugin.php

@ -1,6 +1,5 @@
<?php
api_protect_admin_script();
//the plugin title
$plugin_info['title'] = 'Edit htaccess';
@ -39,7 +38,7 @@ if (!file_exists($file)) {
}
}
if ($editFile) {
if ($editFile && api_is_platform_admin()) {
$originalContent = file_get_contents($file);
$beginLine = '###@@ This part was generated by the edit_htaccess plugin @@##';
$endLine = '###@@ End @@##';

Loading…
Cancel
Save