Skip to content

Edit Own #240

@ghost

Description

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().") 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions