|  | @@ -9,6 +9,8 @@ import tg
 | 
	
		
			
			| 9 | 9 |  from tg import tmpl_context
 | 
	
		
			
			| 10 | 10 |  from tg.i18n import ugettext as _
 | 
	
		
			
			| 11 | 11 |  from tg.predicates import not_anonymous
 | 
	
		
			
			|  | 12 | +from sqlalchemy.orm.exc import NoResultFound
 | 
	
		
			
			|  | 13 | +from tg import abort
 | 
	
		
			
			| 12 | 14 |  
 | 
	
		
			
			| 13 | 15 |  from tracim.controllers import TIMRestController
 | 
	
		
			
			| 14 | 16 |  from tracim.controllers import TIMRestPathContextSetup
 | 
	
	
		
			
			|  | @@ -740,8 +742,10 @@ class UserWorkspaceFolderRestController(TIMRestControllerWithBreadcrumb):
 | 
	
		
			
			| 740 | 742 |  
 | 
	
		
			
			| 741 | 743 |      def _before(self, *args, **kw):
 | 
	
		
			
			| 742 | 744 |          TIMRestPathContextSetup.current_user()
 | 
	
		
			
			| 743 |  | -        TIMRestPathContextSetup.current_workspace()
 | 
	
		
			
			| 744 |  | -
 | 
	
		
			
			|  | 745 | +        try:
 | 
	
		
			
			|  | 746 | +            TIMRestPathContextSetup.current_workspace()
 | 
	
		
			
			|  | 747 | +        except NoResultFound:
 | 
	
		
			
			|  | 748 | +            abort(404)
 | 
	
		
			
			| 745 | 749 |  
 | 
	
		
			
			| 746 | 750 |      @tg.require(current_user_is_content_manager())
 | 
	
		
			
			| 747 | 751 |      @tg.expose('tracim.templates.folder.edit')
 |