• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修訂6cb99c4bc4c7048ec84c2a923defa2416e6a59fa (tree)
時間2010-07-28 23:27:53
作者Jenny Steele <jsteele@geek...>
CommiterJenny Steele

Log Message

Added anonymous and authenticated as options on the permissions page

Change Summary

差異

--- a/pyforge/pyforge/model/project.py
+++ b/pyforge/pyforge/model/project.py
@@ -253,7 +253,7 @@ class Project(MappedClass):
253253 def roles(self):
254254 from . import auth
255255 with h.push_config(c, project=self):
256- roles = auth.ProjectRole.query.find({'name':{'$in':['Admin','Developer']}}).all()
256+ roles = auth.ProjectRole.query.find({'name':{'$in':['Admin','Developer','*anonymous','*authenticated']}}).all()
257257 roles = roles + auth.ProjectRole.query.find({'name':None,'roles':{'$in':[r._id for r in roles]}}).all()
258258 return sorted(roles, key=lambda r:r.display())
259259