Changeset 1106


Ignore:
Timestamp:
Mar 27, 2006, 11:19:31 PM (18 years ago)
Author:
rub
Message:

improvement issue 0000127&0000301:

o Fix Missing Adviser tests
o Improve pwg_high , set to is_the_guest default value for enabled_high

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r1082 r1106  
    7979// |                    virtual categories management                      |
    8080// +-----------------------------------------------------------------------+
    81 // request to delete a virtual category
    82 if (isset($_GET['delete']) and is_numeric($_GET['delete']))
     81// request to delete a virtual category / not for an adviser
     82if (isset($_GET['delete']) and is_numeric($_GET['delete']) and !is_adviser())
    8383{
    8484  delete_categories(array($_GET['delete']));
  • trunk/include/user.inc.php

    r1052 r1106  
    7979  $user['expand'] = $conf['auto_expand'];
    8080  $user['show_nb_comments'] = $conf['show_nb_comments'];
     81  $user['enabled_high'] = $conf['newuser_default_enabled_high'];
    8182}
    8283
  • trunk/picture.php

    r1094 r1106  
    100100 */
    101101
    102 if (isset($_GET['action']))
     102if (isset($_GET['action']) and !is_adviser())
    103103{
    104104  switch ($_GET['action'])
     
    140140    case 'set_as_representative' :
    141141    {
    142       if (is_admin() and isset($page['category']) and !is_adviser())
     142      if (is_admin() and isset($page['category']))
    143143      {
    144144        $query = '
     
    160160    case 'add_to_caddie' :
    161161    {
    162       if (!is_adviser())
    163       {
    164         fill_caddie(array($page['image_id']));
    165       }
     162      fill_caddie(array($page['image_id']));
    166163      redirect($url_self);
    167164      break;
Note: See TracChangeset for help on using the changeset viewer.