From a6c771547decb2667c3b9b2cde769dd3fe51bc0c Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 23 Mar 2010 05:56:50 +0000 Subject: Add function is_webmaster (like is_admin function) Add on ignore list the directory local/personal git-svn-id: http://piwigo.org/svn/trunk@5272 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/LocalFilesEditor/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/LocalFilesEditor/admin.php') 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')); } -- cgit v1.2.3