Registry Software:User Groups
[21 Dec 2008 - Randy]
It is obvious that a user is a member of a group. In fact, they must be approved by a group leader in order to activate their account.
A field in the 'user' and 'part' tables is intended to hold this group_id.
However, a user may be a member of more than one group. The list of groups a user belongs to is derived from the table ung_db.membership limited by user_id. This is represented a the group_u_list entry in the bbdb.parts table.
Some sections of the register allow the user to specify which of its groups should apply to the action.
If User->group is to be used, then the default should be the most recent group the user has joined, or the group selected as the default by the user.
Usage:
- Part.pm - It does not seem that owning_group_id or Part->group are used by anyone except the DAS system
- DNA Submission System (cgi/dna_transfer and cgi/lib/DNASubmissionBatch.pm)
- When basic or composite parts are created, the user is given a list of groups that should be given editing permission
this list fills group_u_list. User->group is not used by other part creation.