Project

General

Profile

« Previous | Next » 

Revision 1795

Added by Dietmar about 12 years ago

! change setting of the $_SESSION['SYSTEM_PERMISSIONS']
from get_user_id to ami_group_member, sp that all Users
with Administrators Group, don't need to login again

View differences:

branches/2.8.x/CHANGELOG
13 13

  
14 14

  
15 15

  
16
24 Oct-2012 Build 1795 Dietmar Woellbrink (Luisehahne)
17
! change setting of the $_SESSION['SYSTEM_PERMISSIONS']
18
  from get_user_id to ami_group_member, sp that all Users
19
  with Administrators Group, don't need to login again  
16 20
24 Oct-2012 Build 1794 Dietmar Woellbrink (Luisehahne)
17 21
! upgrade-script: system_permission changes for group Administrators 
18 22
  will be change in $_SESSION['SYSTEM_PERMISSIONS'], if you are logged in as user_id == 1
branches/2.8.x/wb/upgrade-script.php
757 757
	$sql .= '`template_permissions` = \''.$sTemplatePermissions.'\' ';
758 758
	$sql .= 'WHERE `group_id` = \'1\' ';
759 759
    $aDebugMessage[] = ($database->query($sql)) ? " $OK<br />" : " $FAIL!<br />";
760
    if( ($admin->is_authenticated() == true) && ($admin->get_user_id()=='1') ) {
760
    if( ($admin->is_authenticated() == true) && ($admin->ami_group_member('1') ) ) {
761 761
        $_SESSION['SYSTEM_PERMISSIONS'] = array_merge($_SESSION['SYSTEM_PERMISSIONS'], explode(',', $sSystemPermissions));
762 762
    }
763 763

  
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1794');
54
if(!defined('REVISION')) define('REVISION', '1795');
55 55
if(!defined('SP')) define('SP', '');

Also available in: Unified diff