Revision 1795
Added by Dietmar about 12 years ago
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 |
|
Also available in: Unified diff
! 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