Skip to content
Snippets Groups Projects
Commit 8f8797eb authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '228-relatedobjectdoesnotexist-at-person' into 'master'

Resolve "RelatedObjectDoesNotExist at /person"

Closes #228

See merge request AlekSIS!226
parents cad0b447 c073ca09
No related branches found
No related tags found
1 merge request!226Resolve "RelatedObjectDoesNotExist at /person"
Pipeline #1574 failed
......@@ -50,7 +50,10 @@ MENUS = {
"name": _("Me"),
"url": "person",
"icon": "insert_emoticon",
"validators": ["menu_generator.validators.is_authenticated"],
"validators": [
"menu_generator.validators.is_authenticated",
"aleksis.core.util.core_helpers.has_person",
],
},
],
},
......
......@@ -78,7 +78,7 @@ def persons(request: HttpRequest) -> HttpResponse:
return render(request, "core/persons.html", context)
@login_required
@person_required
def person(request: HttpRequest, id_: Optional[int] = None) -> HttpResponse:
context = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment