Assign users to multiple groups

31 views
Skip to first unread message

SR

unread,
Sep 21, 2016, 6:40:39 PM9/21/16
to web2py-users
How can I assign a particular user to 3 different groups?
Any suggestions?
Thanks.

Dave S

unread,
Sep 21, 2016, 6:50:00 PM9/21/16
to web2py-users

Wouldn't that be just applying the add_membership() call 3 times?
  auth.add_membership(brits, james_bond)
  auth
.add_membership(shakers, james_bond)
  auth
.add_membership(agents, james_bond)



/dps

Message has been deleted

SR

unread,
Sep 21, 2016, 7:15:23 PM9/21/16
to web2py-users
Thanks a lot.
Reply all
Reply to author
Forward
0 new messages