• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revisiond6fc234d7d0e88b0bc8c67537b6d5d694906e7fa (tree)
Zeit2010-07-20 03:25:20
AutorJenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

Fixed a problem that broke user profiles with deleted projects

Ändern Zusammenfassung

Diff

--- a/pyforge/pyforge/model/auth.py
+++ b/pyforge/pyforge/model/auth.py
@@ -259,7 +259,7 @@ class User(MappedClass):
259259 from .project import Project
260260 for p in self.projects:
261261 project = Project.query.get(_id=p, deleted=False)
262- if self._id in [role.user_id for role in project.roles] and not project.shortname.startswith('u/'):
262+ if project and self._id in [role.user_id for role in project.roles] and not project.shortname.startswith('u/'):
263263 yield project
264264
265265 def role_iter(self):