allura
修訂 | 6cb99c4bc4c7048ec84c2a923defa2416e6a59fa (tree) |
---|---|
時間 | 2010-07-28 23:27:53 |
作者 | Jenny Steele <jsteele@geek...> |
Commiter | Jenny Steele |
Added anonymous and authenticated as options on the permissions page
@@ -253,7 +253,7 @@ class Project(MappedClass): | ||
253 | 253 | def roles(self): |
254 | 254 | from . import auth |
255 | 255 | 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() | |
257 | 257 | roles = roles + auth.ProjectRole.query.find({'name':None,'roles':{'$in':[r._id for r in roles]}}).all() |
258 | 258 | return sorted(roles, key=lambda r:r.display()) |
259 | 259 |