Changes between Version 98 and Version 99 of BluePrintAuthorization


Ignore:
Timestamp:
07/04/10 16:39:30 (14 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintAuthorization

    v98 v99  
    1818        user_id = auth.user.id
    1919        _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))
    2121        for membership in memberships:
    2222            roles.append(membership.group_id)