Changeset 5272


Ignore:
Timestamp:
03/23/10 06:56:50 (9 years ago)
Author:
rub
Message:

Add function is_webmaster (like is_admin function)
Add on ignore list the directory local/personal

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_user.inc.php

    r5271 r5272  
    12341234{ 
    12351235  return is_autorize_status(ACCESS_ADMINISTRATOR, $user_status); 
     1236} 
     1237 
     1238/* 
     1239 * Return if user is, at least, a webmaster 
     1240 * @return bool 
     1241*/ 
     1242 function is_webmaster($user_status = '') 
     1243{ 
     1244  return is_autorize_status(ACCESS_WEBMASTER, $user_status); 
    12361245} 
    12371246 
  • trunk/local

    • Property svn:ignore set to
      personal
  • trunk/plugins/LocalFilesEditor/admin.php

    r5256 r5272  
    295295if (isset($_POST['submit']) and !is_adviser()) 
    296296{ 
    297   if ($user['status'] != 'webmaster') 
     297  if (!is_webmaster()) 
    298298  { 
    299299    array_push($page['errors'], l10n('locfiledit_webmaster_only')); 
Note: See TracChangeset for help on using the changeset viewer.