Export UI - Only present "save mapping" button to permissioned users
authorColeman Watts <coleman@civicrm.org>
Thu, 4 Mar 2021 21:53:21 +0000 (16:53 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 4 Mar 2021 21:53:21 +0000 (16:53 -0500)
commite99512cf450461e5eba7f7d8809f6063632780ac
treed896870cede21547e79afb87a791450a7c09b8e4
parent90d9e732ad4620bf65cd3415791e89260f3fe2e3
Export UI - Only present "save mapping" button to permissioned users

The button was showing for all users which would result in confusion when it didn't work because they lacked permission.
Currently the APIv3 Mapping.create api requires "administer CiviCRM." I don't know if that's right or if there's another
permission it ought to be checking, but at least this brings the UI in alignment with what's currently allowed.
ang/exportui.ang.php
ang/exportui/export.html
ang/exportui/exportui.js