Uniphix
Active member
I have some questions about permission contents... This is what I have right now:
I have a system I am designing for a client of ours:
1) We have classes, and those classes have "Memberships" they could be User Groups but the problem is from my understanding that User Groups are tied to the User itself, not as a system as whole.
The situation I have right now is this:
If User Bob is part of Class A and is a Leader of that Class that means he gets Leadership Usergroup access BUT he should NOT have access to Class B because hes not part of that class. But because of the UserGroup permission what can I do about this? I do not want to assign User Ids to a specific class because that can eventually become a hassle especially when we may have more than 50,000+ records in the future and having to rebuild the permissions for all that will be a hassle. I would rather create some sort of Membership with predefined settings that makes them part of that content group.
Would I need to modify just the xf_permission_entry_content table to add my own membership ID that represents the group that they can be part of or can I just use the User Group system they have and just create a "table" that represents what class they are part of? Which I have something like
class_id, user_id to table that tells me that the user id is part of that class, the permission would then just follow after that??? I just don't want to have to modify to much if I can help it as I am running into that issue now...
Also is the user_group_list in the xf_permission_combination tied to just the user_id itself or can I add another table like class_membership_list basically a list of membership that user is assoicated with, but the problem is just because he is part of Class A as an Leader for that Class he may be just a simple Student in another Class or not part of another Class...
So If the xf_permission_combination is tied as a system as whole rather than a specific content then thats what I need to know
I have a system I am designing for a client of ours:
1) We have classes, and those classes have "Memberships" they could be User Groups but the problem is from my understanding that User Groups are tied to the User itself, not as a system as whole.
The situation I have right now is this:
If User Bob is part of Class A and is a Leader of that Class that means he gets Leadership Usergroup access BUT he should NOT have access to Class B because hes not part of that class. But because of the UserGroup permission what can I do about this? I do not want to assign User Ids to a specific class because that can eventually become a hassle especially when we may have more than 50,000+ records in the future and having to rebuild the permissions for all that will be a hassle. I would rather create some sort of Membership with predefined settings that makes them part of that content group.
Would I need to modify just the xf_permission_entry_content table to add my own membership ID that represents the group that they can be part of or can I just use the User Group system they have and just create a "table" that represents what class they are part of? Which I have something like
class_id, user_id to table that tells me that the user id is part of that class, the permission would then just follow after that??? I just don't want to have to modify to much if I can help it as I am running into that issue now...
Also is the user_group_list in the xf_permission_combination tied to just the user_id itself or can I add another table like class_membership_list basically a list of membership that user is assoicated with, but the problem is just because he is part of Class A as an Leader for that Class he may be just a simple Student in another Class or not part of another Class...
So If the xf_permission_combination is tied as a system as whole rather than a specific content then thats what I need to know