aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'Bugs-Everywhere-Web/beweb/model.py')
-rw-r--r--Bugs-Everywhere-Web/beweb/model.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugs-Everywhere-Web/beweb/model.py b/Bugs-Everywhere-Web/beweb/model.py
index 2bda299..6a603bb 100644
--- a/Bugs-Everywhere-Web/beweb/model.py
+++ b/Bugs-Everywhere-Web/beweb/model.py
@@ -2,12 +2,14 @@ from sqlobject import *
from turbogears.database import PackageHub
# Uncomment the following line if you wish to use Identity and SO_Provider
from turbogears.identity.soprovider import TG_User, TG_Group, TG_Permission
+from turbogears import identity
hub = PackageHub("beweb")
__connection__ = hub
def people_map():
- return dict([(u.userId, u.displayName) for u in TG_User.select()])
+ return dict([(u.userId, u.displayName) for u in TG_User.select() if
+ "fixbugs" in identity.current.permissions])
# class YourDataClass(SQLObject):
# pass