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

Page-specific permissions cause error in page form #1438

Closed
timobrembeck opened this issue May 17, 2022 · 0 comments · Fixed by #1439
Closed

Page-specific permissions cause error in page form #1438

timobrembeck opened this issue May 17, 2022 · 0 comments · Fixed by #1439
Assignees
Labels
‼️ prio: high Needs to be resolved ASAP. 🐛 bug Something isn't working ☺️ effort: low Should be doable in <4h
Milestone

Comments

@timobrembeck
Copy link
Member

Describe the Bug

When page-specific permissions are enabled in the region form, the page form throws an error

Steps to Reproduce

  1. Enable page-specific permissions for a region
  2. Go to a page form in this region
  3. See error

Expected Behavior

The page-specific permissions should be manageable when they're activated

Actual Behavior

A NoReverseMatch error appears

Additional Information

Traceback
render
  bit = node.render_annotated(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
  return self.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/defaulttags.py", line 315, in render
  return nodelist.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 938, in render
  bit = node.render_annotated(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
  return self.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/defaulttags.py", line 315, in render
  return nodelist.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 938, in render
  bit = node.render_annotated(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
  return self.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/loader_tags.py", line 195, in render
  return template.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 172, in render
  return self._render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 162, in _render
  return self.nodelist.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 938, in render
  bit = node.render_annotated(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
  return self.render(context)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/template/defaulttags.py", line 449, in render
  url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/urls/base.py", line 86, in reverse
  return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
File "/opt/integreat-cms/.venv/lib/python3.9/site-packages/django/urls/resolvers.py", line 698, in _reverse_with_prefix
  raise NoReverseMatch(msg)
django.urls.exceptions.NoReverseMatch: Reverse for 'grant_page_permission_ajax' with no arguments not found. 1 pattern(s) tried: ['(?P<region_slug>[^/]+)/ajax/page\\-permission/grant/\\Z']
@timobrembeck timobrembeck added 🐛 bug Something isn't working ‼️ prio: high Needs to be resolved ASAP. labels May 17, 2022
@timobrembeck timobrembeck added this to the Version 1.1 milestone May 17, 2022
@timobrembeck timobrembeck added the ☺️ effort: low Should be doable in <4h label May 17, 2022
@timobrembeck timobrembeck self-assigned this May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
‼️ prio: high Needs to be resolved ASAP. 🐛 bug Something isn't working ☺️ effort: low Should be doable in <4h
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant