Changeset 9546


Ignore:
Timestamp:
Mar 5, 2011, 5:21:54 PM (14 years ago)
Author:
patdenice
Message:

Default privacy level must be 0.

Location:
extensions/AdditionalPages/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/admin/add_page.inc.php

    r9350 r9546  
    22
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    4 
    5 $default_user = get_default_user_info(true);
    64
    75if (!isset($edited_page))
     
    1614    'homepage'   => false,
    1715    'standalone' => false,
    18     'level'      => $default_user['level'],
     16    'level'      => 0,
    1917    'users'      => array('guest', 'generic', 'normal', 'admin', 'webmaster'),
    2018    'groups'     => array(),
     
    6260  }
    6361
    64   $level_access = !empty($_POST['level']) ? $_POST['level'] : $default_user['level'];
     62  $level_access = !empty($_POST['level']) ? $_POST['level'] : 0;
    6563
    6664  if (empty($page['errors']))
     
    132130  $edited_page['groups'] = !empty($_POST['groups']) ? $_POST['groups'] : array();
    133131  $edited_page['users'] = !empty($_POST['users']) ? $_POST['users'] :  array();
    134   $edited_page['level'] = !empty($_POST['level']) ? $_POST['level'] :  $default_user['level'];
     132  $edited_page['level'] = !empty($_POST['level']) ? $_POST['level'] :  0;
    135133  $edited_page['homepage'] = isset($_POST['homepage']);
    136134  $edited_page['standalone'] = isset($_POST['standalone']);
  • extensions/AdditionalPages/admin/config.inc.php

    r9350 r9546  
    1818  if ($conf['AP']['level_perm'] and !isset($_POST['level_perm']))
    1919  {
    20     $default_user = get_default_user_info(true);
    21     pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET level = '.$default_user['level'].';');
     20    pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET level = 0;');
    2221  }
    2322  if ($conf['AP']['group_perm'] and !isset($_POST['group_perm']))
Note: See TracChangeset for help on using the changeset viewer.