Changeset 23447


Ignore:
Timestamp:
2014/05/27 12:11:39 (10 years ago)
Author:
pineray
Message:

#2481 管理者にログインしていない場合にadmin=onにすると管理画面が表示されてしまう不具合を修正.

Location:
branches/version-2_13-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r23256 r23447  
    247247    { 
    248248        // 管理機能からの確認の場合は、非公開の商品も表示する。 
    249         if (isset($admin_mode) && $admin_mode == 'on') { 
    250             SC_Utils_Ex::sfIsSuccess(new SC_Session_Ex()); 
    251             $status = true; 
     249        if (isset($admin_mode) && $admin_mode == 'on' && SC_Utils_Ex::sfIsSuccess(new SC_Session_Ex(), false)) { 
    252250            $where = 'del_flg = 0'; 
    253251        } else { 
    254             $status = false; 
    255252            $where = 'del_flg = 0 AND status = 1'; 
    256253        } 
  • branches/version-2_13-dev/data/class/util/SC_Utils.php

    r23439 r23447  
    175175    } 
    176176 
    177     /* 認証の可否判定 */ 
    178     public function sfIsSuccess($objSess, $disp_error = true) 
     177    /** 
     178     * 認証の可否判定 
     179     * 
     180     * @param SC_Session $objSess 
     181     * @param bool $disp_error 
     182     * @return bool 
     183     */ 
     184    public static function sfIsSuccess(SC_Session $objSess, $disp_error = true) 
    179185    { 
    180186        $ret = $objSess->IsSuccess(); 
Note: See TracChangeset for help on using the changeset viewer.