NewPath-Consulting / Wild-Apricot-Press

The core Wild Apricot Press (WAP) plugin.
https://newpathconsulting.com/wap
GNU General Public License v3.0
3 stars 1 forks source link

removing fields that cannot be sync'd due to access control settings from the sync options #140

Open asirota opened 1 year ago

asirota commented 1 year ago

Fields with No Access - internal use only (member) and Admin Access Only (contact) are only accessible and updated via a successful login for administrative users.

For regular non-admin users, these fields are not accessible via the API and as a result cannot be sync'd

Let's just eliminate from syncing in the Sync Options tab any field that is set to this way because it won't work and there's no reason to show it as a result.

The AdminOnly key in /accounts/:accountId/contactfields API call available via admin specifies these settings. If AdminOnly is set to true, we should not allow syncing of this field because these fields are not accessible to through the API for non-admin users. We can list these fields below the checkboxes under the button so people know they are admin only, and can switch this value if they want the data sync'd

asirota commented 1 year ago

We can also state to allow sync'ing of these fields please change the Member access option so that these fields are not set for administrative access only or "View only" for membership fields.