-
Notifications
You must be signed in to change notification settings - Fork 6
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
budgeting: add rule to view support also between phases and use rule … #4606
budgeting: add rule to view support also between phases and use rule … #4606
Conversation
6360809
to
d8490c6
Compare
{% map_display_points object_list module.settings_instance.polygon %} | ||
{% if module.blueprint_type == 'PB3' %} | ||
{% has_or_would_have_perm 'meinberlin_budgeting.view_support' request.user module as may_view_support %} | ||
{% map_display_points object_list module.settings_instance.polygon 'true' may_view_support|yesno:"false,true" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit hacky with the yesno template tag, but did not really find a better solution for negating a bool in template 🤷♀️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine!
…for map pop up in map view
5239650
to
fe098ee
Compare
@fuzzylogic2000 I decided to do the detail and list view permissions in another PR, so this one could already be reviewed, it only handles the map pop up. I added a task for the missing test.. |
fe098ee
to
739c1c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
{% map_display_points object_list module.settings_instance.polygon %} | ||
{% if module.blueprint_type == 'PB3' %} | ||
{% has_or_would_have_perm 'meinberlin_budgeting.view_support' request.user module as may_view_support %} | ||
{% map_display_points object_list module.settings_instance.polygon 'true' may_view_support|yesno:"false,true" %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine!
…for map pop up in map view
depends on liqd/adhocracy4#1251Did not yet apply the rule in list and detail views, but added separate tasks in story.