aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/LocalFilesEditor/admin.php b/plugins/LocalFilesEditor/admin.php
index 0b000f2ab..b0837345f 100644
--- a/plugins/LocalFilesEditor/admin.php
+++ b/plugins/LocalFilesEditor/admin.php
@@ -294,7 +294,7 @@ if (isset($_POST['restore']) and !is_adviser())
// +-----------------------------------------------------------------------+
if (isset($_POST['submit']) and !is_adviser())
{
- if ($user['status'] != 'webmaster')
+ if (!is_webmaster())
{
array_push($page['errors'], l10n('locfiledit_webmaster_only'));
}