Changeset 1805

Show
Ignore:
Timestamp:
11/18/08 17:10:31 (16 months ago)
Author:
JensDiemer
Message:

send a superuser information, if the _install section is on or if debug is on. See: ticket:50

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/PyLucid/plugins_internal/auth/auth.py

    r1768 r1805  
    330330        # rebuild the login/logout link: 
    331331        add_dynamic_context(self.request, self.context) 
     332         
     333        if self.request.user.is_superuser: 
     334            if settings.ENABLE_INSTALL_SECTION: 
     335                self.page_msg( 
     336                    _("Info: You should disable the _install section!") 
     337                ) 
     338            if settings.DEBUG: 
     339                self.page_msg( 
     340                    _("Info: settings.DEBUG is on!") 
     341                )                 
    332342 
    333343        if self.request.POST.get("next_url","") != "":