##// END OF EJS Templates
better logging
marcink -
r2021:a04844d9 beta
parent child Browse files
Show More
@@ -157,7 +157,7 b' class SimpleGit(BaseVCSController):'
157 157 #==============================================================
158 158 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
159 159 #==============================================================
160
160 log.info('%s action on GIT repo "%s"' % (action, repo_name))
161 161 if action in ['pull', 'push']:
162 162 try:
163 163 user = self.__get_user(username)
@@ -80,7 +80,6 b' class SimpleHg(BaseVCSController):'
80 80 # GET ACTION PULL or PUSH
81 81 #======================================================================
82 82 action = self.__get_action(environ)
83
84 83 #======================================================================
85 84 # CHECK ANONYMOUS PERMISSION
86 85 #======================================================================
@@ -88,7 +87,7 b' class SimpleHg(BaseVCSController):'
88 87 anonymous_user = self.__get_user('default')
89 88
90 89 username = anonymous_user.username
91 anonymous_perm = self._check_permission(action,anonymous_user,
90 anonymous_perm = self._check_permission(action, anonymous_user,
92 91 repo_name)
93 92
94 93 if anonymous_perm is not True or anonymous_user.active is False:
@@ -121,7 +120,7 b' class SimpleHg(BaseVCSController):'
121 120 #==============================================================
122 121 # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME
123 122 #==============================================================
124
123 log.info('%s action on HG repo "%s"' % (action, repo_name))
125 124 if action in ['pull', 'push']:
126 125 try:
127 126 user = self.__get_user(username)
General Comments 0
You need to be logged in to leave comments. Login now