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

delete permission #404

Open
lbl-knts opened this issue Sep 29, 2023 · 1 comment
Open

delete permission #404

lbl-knts opened this issue Sep 29, 2023 · 1 comment

Comments

@lbl-knts
Copy link

lbl-knts commented Sep 29, 2023

To delete a payment in CiviBanking, you need the 'administer CiviCRM' permission.
Here is the line of code for it: line 61
It's a very broad permission. Is there any objection to using the existing 'CiviContribute: delete in CiviContribute' permission instead? That would be more specific.

@lbl-knts
Copy link
Author

lbl-knts commented Oct 2, 2023

$this->assign('can_delete', CRM_Core_Permission::check('delete in CiviContribute'));
solves this issue

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

No branches or pull requests

1 participant