Changeset - 62a1d4155f6b
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-03-13 01:22:29
marcin@python-works.com
let action always return pull command for better security on pull restricted repos
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -238,13 +238,13 @@ class SimpleHg(object):
 
        for qry in environ['QUERY_STRING'].split('&'):
 
            if qry.startswith('cmd'):
 
                cmd = qry.split('=')[-1]
 
                if mapping.has_key(cmd):
 
                    return mapping[cmd]
 
                else:
 
                    return cmd
 
                    return 'pull'
 

	
 
    def __invalidate_cache(self, repo_name):
 
        """we know that some change was made to repositories and we should
 
        invalidate the cache to see the changes right away but only for
 
        push requests"""
 
        invalidate_cache('get_repo_cached_%s' % repo_name)
0 comments (0 inline, 0 general)