Changeset - a04844d9c85b
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2012-02-22 20:20:50
marcin@python-works.com
better logging
2 files changed with 3 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/middleware/simplegit.py
Show inline comments
 
@@ -157,7 +157,7 @@ class SimpleGit(BaseVCSController):
 
                #==============================================================
 
                # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
 
                #==============================================================
 

	
 
                log.info('%s action on GIT repo "%s"' % (action, repo_name))
 
                if action in ['pull', 'push']:
 
                    try:
 
                        user = self.__get_user(username)
rhodecode/lib/middleware/simplehg.py
Show inline comments
 
@@ -80,7 +80,6 @@ class SimpleHg(BaseVCSController):
 
        # GET ACTION PULL or PUSH
 
        #======================================================================
 
        action = self.__get_action(environ)
 

	
 
        #======================================================================
 
        # CHECK ANONYMOUS PERMISSION
 
        #======================================================================
 
@@ -88,7 +87,7 @@ class SimpleHg(BaseVCSController):
 
            anonymous_user = self.__get_user('default')
 

	
 
            username = anonymous_user.username
 
            anonymous_perm = self._check_permission(action,anonymous_user,
 
            anonymous_perm = self._check_permission(action, anonymous_user,
 
                                                    repo_name)
 

	
 
            if anonymous_perm is not True or anonymous_user.active is False:
 
@@ -121,7 +120,7 @@ class SimpleHg(BaseVCSController):
 
                #==============================================================
 
                # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
 
                #==============================================================
 

	
 
                log.info('%s action on HG repo "%s"' % (action, repo_name))
 
                if action in ['pull', 'push']:
 
                    try:
 
                        user = self.__get_user(username)
0 comments (0 inline, 0 general)