Changes between Version 98 and Version 99 of BluePrintAuthorization
- Timestamp:
- 07/04/10 16:39:30 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrintAuthorization
v98 v99 18 18 user_id = auth.user.id 19 19 _memberships = db.auth_membership 20 memberships = db(_memberships.user_id == user_id).select( _memberships.group_id)20 memberships = db(_memberships.user_id == user_id).select(memberships.group_id, limitby=(0, 1)) 21 21 for membership in memberships: 22 22 roles.append(membership.group_id)