mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
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:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user