Hi everyone,
I've got a problem that perhaps someone with more experience can help solve. I have a website for a Sports league setup using a couple of modules for Drupal 5.x. They are:
Usernode
Tac-Lite
There are also a few roles, such as Coach A, and Coach B. The dilemma is, I have created Teams to assign anyone that creates a profile (thus creating a usernode automatically), and the coach can edit the usernode and put them to a team. Once in a team, it is 'locked out' by the other coach. Say coach A assigns player to team A. Coach B cannot edit it anymore. Is it possible? Unassigned players can be edited by both coaches, while assigned players can only be edited by their specific coach.
Any help greatly appreciated! Thanks!
Comments
Comment #1
Dave Cohen commentedYou haven't really said, but it sounds like Team A, Team B, etc are terms. Maybe all you need is an Unassigned term. If so you could tag players Unassigned by default with a form_alter hook.
Comment #2
nimrod98 commentedYeah I finally figured it out, what I did was to assign each player a placeholder team, aka "No Team Assigned" everytime a usernode was created. Allow roles to edit those, and then once it has been assigned a Team A for example, it gets locked out for Team B. Works fine =)
Comment #3
nimrod98 commented