Changes between Version 80 and Version 81 of BluePrintAuthorization
- Timestamp:
- 06/22/10 14:43:01 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthorization
v80 v81 17 17 user_id = auth.user.id 18 18 _memberships = db.auth_membership 19 memberships = db(_memberships.user_id == user_id).select(_memberships.group_id , cache=(cache.ram, 60)) # 60s cache19 memberships = db(_memberships.user_id == user_id).select(_memberships.group_id) 20 20 for membership in memberships: 21 21 roles.append(membership.group_id)