Show More
@@ -180,6 +180,11 b' class SshWrapper(object):' | |||
|
180 | 180 | |
|
181 | 181 | elif scm_detected: |
|
182 | 182 | user = User.get(user_id) |
|
183 | if not user: | |
|
184 | log.warning('User with id %s not found', user_id) | |
|
185 | exit_code = -1 | |
|
186 | return exit_code | |
|
187 | ||
|
183 | 188 | auth_user = user.AuthUser() |
|
184 | 189 | permissions = auth_user.permissions['repositories'] |
|
185 | 190 |
@@ -83,8 +83,9 b' class VcsServer(object):' | |||
|
83 | 83 | self.user, self.repo_name) |
|
84 | 84 | return 0 |
|
85 | 85 | |
|
86 | log.error('Cannot properly fetch or allow user permissions. ' | |
|
87 |
'Return value is: %s, req action: %s', |
|
|
86 | log.error('Cannot properly fetch or allow user %s permissions. ' | |
|
87 | 'Return value is: %s, req action: %s', | |
|
88 | self.user, permission, action) | |
|
88 | 89 | return -2 |
|
89 | 90 | |
|
90 | 91 | def update_environment(self, action, extras=None): |
General Comments 0
You need to be logged in to leave comments.
Login now