Closed (won't fix)
Project:
OG User Roles
Version:
6.x-1.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2009 at 07:14 UTC
Updated:
5 Dec 2009 at 18:11 UTC
Is there a way to restrict the admins of an organic group to only assigning 1 role per user? I.E. my groups represent teams, and each team member can only have 1 position (role) at a time...
Thanks!
Comments
Comment #1
scotthenning commentedComment #2
somebodysysop commentedNo, there is nothing like that in place. If someone wants to code something up, I'm happy to look at it.
Comment #3
scotthenning commentedCan you point me to the code in the module where it lists the roles that can be assigned to a user? I am thinking I can do a sloppy work-around if I create a drop-down or radio-buttons instead of checkboxes...
Thanks!
Comment #4
somebodysysop commentedYou'll need to add a setting in hook_settings to determine the number of group roles allowable per group.
Next, look for:
This is what must be modified to only insert IF the number of group roles allowable is not exceeded.
Comment #5
somebodysysop commentedComment #6
sunWith the rise of the rewritten OGUR 4.x for Drupal 6, in which many unrelated features of OGUR were removed, and nearing a release of Drupal 7, I'm closing down old issues.