Show More
@@ -157,7 +157,7 b' class SimpleGit(BaseVCSController):' | |||||
157 | #============================================================== |
|
157 | #============================================================== | |
158 | # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME |
|
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 | if action in ['pull', 'push']: |
|
161 | if action in ['pull', 'push']: | |
162 | try: |
|
162 | try: | |
163 | user = self.__get_user(username) |
|
163 | user = self.__get_user(username) |
@@ -80,7 +80,6 b' class SimpleHg(BaseVCSController):' | |||||
80 | # GET ACTION PULL or PUSH |
|
80 | # GET ACTION PULL or PUSH | |
81 | #====================================================================== |
|
81 | #====================================================================== | |
82 | action = self.__get_action(environ) |
|
82 | action = self.__get_action(environ) | |
83 |
|
||||
84 | #====================================================================== |
|
83 | #====================================================================== | |
85 | # CHECK ANONYMOUS PERMISSION |
|
84 | # CHECK ANONYMOUS PERMISSION | |
86 | #====================================================================== |
|
85 | #====================================================================== | |
@@ -88,7 +87,7 b' class SimpleHg(BaseVCSController):' | |||||
88 | anonymous_user = self.__get_user('default') |
|
87 | anonymous_user = self.__get_user('default') | |
89 |
|
88 | |||
90 | username = anonymous_user.username |
|
89 | username = anonymous_user.username | |
91 | anonymous_perm = self._check_permission(action,anonymous_user, |
|
90 | anonymous_perm = self._check_permission(action, anonymous_user, | |
92 | repo_name) |
|
91 | repo_name) | |
93 |
|
92 | |||
94 | if anonymous_perm is not True or anonymous_user.active is False: |
|
93 | if anonymous_perm is not True or anonymous_user.active is False: | |
@@ -121,7 +120,7 b' class SimpleHg(BaseVCSController):' | |||||
121 | #============================================================== |
|
120 | #============================================================== | |
122 | # CHECK PERMISSIONS FOR THIS REQUEST USING GIVEN USERNAME |
|
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 | if action in ['pull', 'push']: |
|
124 | if action in ['pull', 'push']: | |
126 | try: |
|
125 | try: | |
127 | user = self.__get_user(username) |
|
126 | user = self.__get_user(username) |
General Comments 0
You need to be logged in to leave comments.
Login now