Open ended on the implementation here, but we'll need a way to distinguish between a user that is controling a normal character, and a user that has Dungeon Master privilidges.
You'll probably want something along these lines. That will allow for multiple groups or games, whatever you want to call them. The member list can determine what permissions (role) a user has in any given group.
Open ended on the implementation here, but we'll need a way to distinguish between a user that is controling a normal character, and a user that has Dungeon Master privilidges.