Forums
I am in an organization that has 13 separate units.
Different units have different teachers and lessons starting in different months throughout the summer but all member in all units need to pass the same certification test. The certification test needs to be available for different dates for the different classes (members of one unit should not see the certification test until the testing date for their unit.
I created separate classes for each unit.
I have been able to create separate classes and add the course with the certification test to each class separately.
When I go to the URL for the each class it correctly shows a course in that class.
But when I change availability date for the course in one class it changes the availability dates for the course the other class.
Also when I log in as a user I can not access the URL for the class, it displays "Access denied. You are not authorized to access this page."
I would like for a users to be able to see courses in their class.
Hi ls4680,
Hi ls4680,
You can add a multi filed with a node reference and a date with the module multifield or fieldcollection. After doing that you should check opigno the opigno_og_access module. It implements the restrictions to the content based on the group settings / memberships. You will need to do something similar to restrict the access based on this new multifield that you added.
BR
In reply to Hi ls4680, by James Aparicio
Access to the Class URL
In reply to Access to the Class URL by ls4680
Hi ls4680,
Hi ls4680,
What do you mean access denied? He cannot access the node class page, is that it?
Is the user that gets access denied part of the class? If not, is the class private?
Regarding the opigno_og_access there are no settings, just code. You should take a look at what it does. It creates access keys for the nodes and grants the keys (hook_node_access_records and hook_og_access_node_grants). You have to implement something similar adding a key with grater priority based on your new new requirements. Or replace it with your own logic.
BR
Access to the Class URL {SOLVED}