Hoe kan ik het systeem laten weten tot welke user-group een gebruiker behoort indien hij van meerder
Ron Norus
30/04/2015 17:16:31Ben met een nieuwe WordPress site bezig. Hier kunnen gebruikers (Customers) persoonlijke informatie opslaan en delen. Het delen kent 2 gebruikers-groepen: Relatives (beheerders) en Relations (persoonlijke relaties van klanten).
Hier de beschrijving van het probleem waar ik tegen aan loop:
Global: Registration and login is with an email-address + password
System has 3 User-groups:
Customers (they pay for specific service)
Relatives (they can maintain a certain customer if customer has invited him)
Relations (they can view customers info if customer has invited him)
If relatives are invited they are stored in a separated table: users_link_relatives related with userID to customer
If relations are invited they are stored in a separated table: users_link_relations related with userID to customer
Customers can have x relatives and x relations
Problem:
Customer can also be a relation and/or a relative from someone else
Relative can also be a relation and/or a customer from someone else
Relation can also be a relative and/or a customer from someone else
Question:
After login how does the system knows which Usergroup should be taken for the user that just logged-in?
Iemand misschien een tip hoe dit het beste op te lossen.
Hier de beschrijving van het probleem waar ik tegen aan loop:
Global: Registration and login is with an email-address + password
System has 3 User-groups:
Customers (they pay for specific service)
Relatives (they can maintain a certain customer if customer has invited him)
Relations (they can view customers info if customer has invited him)
If relatives are invited they are stored in a separated table: users_link_relatives related with userID to customer
If relations are invited they are stored in a separated table: users_link_relations related with userID to customer
Customers can have x relatives and x relations
Problem:
Customer can also be a relation and/or a relative from someone else
Relative can also be a relation and/or a customer from someone else
Relation can also be a relative and/or a customer from someone else
Question:
After login how does the system knows which Usergroup should be taken for the user that just logged-in?
Iemand misschien een tip hoe dit het beste op te lossen.
Er zijn nog geen reacties op dit bericht.