Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export UI - Only present "save mapping" button to permissioned users #19733

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Mar 4, 2021

Overview

The button was showing for all users which would result in confusion when it didn't work because they lacked permission.

See https://lab.civicrm.org/dev/core/-/issues/2435

Before

Button shows for all users, then fails to work.

After

Button hidden for non-admins.

Comments

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.

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.
@civibot
Copy link

civibot bot commented Mar 4, 2021

(Standard links)

@civibot civibot bot added the master label Mar 4, 2021
@colemanw
Copy link
Member Author

colemanw commented Mar 9, 2021

Merging based on review & testing in GL.

@colemanw colemanw merged commit 7c75009 into civicrm:master Mar 9, 2021
@eileenmcnaughton eileenmcnaughton deleted the exportUiCheckPerm branch March 9, 2021 19:05
@eileenmcnaughton
Copy link
Contributor

Yep - testing is appropriate to this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants