You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just hit some issues with authenticating events using "edit own".
I have 2 sections Member and Organisation. Each member has an organisation field linked to the name in the organisation section but when the member tries to update the organisation while set to 'edit own' it fails authentication.
After a quick look at the code it seems to only map the relationship one way. I'm thinking the solution would be something like this:
public function checkEventPermissions
SELECT `child_section_field_id`
FROM `tbl_sections_association`
WHERE
(`parent_section_id` = ".extension_Members::getMembersSection()." AND `child_section_id` = ".$section_id." AND `parent_section_field_id` IN ('".implode("','", $field_ids)."'))
OR
(`parent_section_id` = ".$section_id." AND `child_section_id` = ".extension_Members::getMembersSection().")
The text was updated successfully, but these errors were encountered:
Not sure if this is a bug, but definitely like to see support for related sections.
Right now 'edit own' only seems to apply to members section directly...
I've just hit some issues with authenticating events using "edit own".
I have 2 sections Member and Organisation. Each member has an organisation field linked to the name in the organisation section but when the member tries to update the organisation while set to 'edit own' it fails authentication.
After a quick look at the code it seems to only map the relationship one way. I'm thinking the solution would be something like this:
public function checkEventPermissions
The text was updated successfully, but these errors were encountered: