Ignore:
Timestamp:
17/03/09 16:22:42 (12 years ago)
Author:
cbyrom
Message:

Disable (old) security code from MILK stack +
make handling of edit mode on/off more robust - redirecting users
back to 'discovery' home page when not in edit mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/atom_editor/atomeditorcontroller.py

    r5085 r5111  
    2727        Default is True.  
    2828        ''' 
     29        # check the editor is enabled first 
     30        if g.atomEditorEnabled != 'True': 
     31            logging.info("Editor not enabled - cannot edit atoms - redirect to 'view' mode") 
     32            return h.redirect_to(h.url_for('discovery')) 
     33 
    2934        logging.info("Setting up AtomEditorController") 
    3035        self.cf=request.environ['ndgConfig'] 
Note: See TracChangeset for help on using the changeset viewer.