Show
Ignore:
Timestamp:
02/14/08 14:53:16 (9 months ago)
Author:
JensDiemer
Message:

-filter the sub_menu for normal users
-limit access to a "must_admin" method for users how are is_staff or is_superuser
-set request.debug with _or_

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/system/utils.py

    r1304 r1409  
    2525    add the attribute "debug" to the request object. 
    2626    """ 
    27     if settings.DEBUG and \ 
     27    if settings.DEBUG or \ 
    2828                request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS: 
    2929        request.debug = True 
    3030    else: 
    3131        request.debug = False 
     32 
    3233 
    3334def get_uri_base():