allura
修訂 | 6263685b925e531a96ad943d8a0dc4471bc1b992 (tree) |
---|---|
時間 | 2012-03-29 23:21:11 |
作者 | Jenny Steele <jsteele@geek...> |
Commiter | Cory Johns |
[#3675] Fix for security failure during migration
Signed-off-by: Jenny Steele <jsteele@geek.net>
@@ -193,9 +193,10 @@ class RoleCache(object): | ||
193 | 193 | if rid in visited: continue |
194 | 194 | yield role |
195 | 195 | pr_index = self.cred.project_roles(role.project_id).index |
196 | - for i in pr_index[rid].roles: | |
197 | - if i in pr_index: | |
198 | - to_visit.append((i, pr_index[i])) | |
196 | + if rid in pr_index: | |
197 | + for i in pr_index[rid].roles: | |
198 | + if i in pr_index: | |
199 | + to_visit.append((i, pr_index[i])) | |
199 | 200 | return RoleCache(self.cred, _iter()) |
200 | 201 | |
201 | 202 | @LazyProperty |