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

Required for plugin-event #310

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions galette/includes/core_acls.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
'contributions' => 'member',
'printContribution' => 'member',
'myContributions' => 'member',
'contributionMembers' => 'groupmanager',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This route seems not called, either in the plugin (or any other plugin) or in core itself. Did I miss something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In core, in the templates :

url: '{{ url_for("contributionMembers") }}',

url: '{{ url_for("contributionMembers") }}',

url: '{{ url_for("contributionMembers", {"page": 1, "search": "{query}"}) }}',

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks

'/(.+)?contribution(.+)?/i' => 'staff',
'/(.+)?transaction(.+)?/i' => 'staff',
// /Contributions rules
Expand Down
1 change: 1 addition & 0 deletions galette/templates/default/elements/js/choose_adh.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
$('{{ js_chosen_id }}').dropdown({
match: 'text',
apiSettings: {
{% if js_chosen_cache is defined and js_chosen_cache == false %}cache: false,{% endif %}
url: '{{ url_for("contributionMembers", {"page": 1, "search": "{query}"}) }}',
method: 'post',
beforeSend: function (settings) {
Expand Down