Changeset 23271


Ignore:
Timestamp:
2013/11/18 11:13:56 (8 years ago)
Author:
michael_nelson
Message:

#2444 管理者権限の動作不備

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_1/data/class/SC_Session.php

    r23124 r23271  
    6868    public function IsSuccess() 
    6969    { 
    70         if ($this->cert == CERT_STRING) { 
     70       if ($this->cert == CERT_STRING) { 
    7171            $masterData = new SC_DB_MasterData_Ex(); 
    72             $admin_path = preg_replace('/\/+/', '/', $_SERVER['SCRIPT_NAME']); 
    73             $arrPERMISSION = $masterData->getMasterData('mtb_permission'); 
    74             if (isset($arrPERMISSION[$admin_path])) { 
     72            $admin_path = strtolower(preg_replace('/\/+/', '/', $_SERVER['SCRIPT_NAME']));             
     73            $arrPERMISSION = array_change_key_case($masterData->getMasterData('mtb_permission')); 
     74            if (isset($arrPERMISSION[$admin_path])) {  
    7575                // 数値が自分の権限以上のものでないとアクセスできない。 
    7676                if ($arrPERMISSION[$admin_path] < $this->authority) { 
Note: See TracChangeset for help on using the changeset viewer.