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
This commit is contained in:
rub
2010-03-23 05:56:50 +00:00
parent c0879165c6
commit a6c771547d
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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'));
}