Changeset 6088

Show
Ignore:
Timestamp:
06/01/07 11:36:43 (1 year ago)
Author:
bergie
Message:

Some authentication safeties

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/midcom.core/midcom/services/auth.php

    r5987 r6088  
    11451145        if (is_string($user)) 
    11461146        { 
    1147             if (   mgd_is_guid($user) 
    1148                 || is_numeric($user)) 
     1147            if ($user != 'EVERYONE' 
     1148                && (    mgd_is_guid($user) 
     1149                    || is_numeric($user))) 
    11491150            { 
    11501151                $user =& $_MIDCOM->auth->get_user($user); 
     
    11601161        if (!isset($cache_user_id)) 
    11611162        { 
    1162             $cache_user_id = $user; 
     1163            if (is_object($user)) 
     1164            { 
     1165                $cache_user_id = $user->id; 
     1166            } 
     1167            else 
     1168            { 
     1169                $cache_user_id = $user; 
     1170            } 
    11631171        } 
    11641172        if (!class_exists($object_class)) 
     
    14721480    function require_valid_user($method = 'form') 
    14731481    { 
     1482        debug_push_class(__CLASS__, __FUNCTION__); 
     1483        debug_add("require_valid_user called", MIDCOM_LOG_DEBUG); 
     1484        debug_print_function_stack("require_valid_user called at this level"); 
     1485        debug_pop();         
    14741486        if (! $this->is_valid_user()) 
    14751487        {