aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fietsboek/views/profile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fietsboek/views/profile.py b/fietsboek/views/profile.py
index 4d23ae4..81ec16d 100644
--- a/fietsboek/views/profile.py
+++ b/fietsboek/views/profile.py
@@ -113,6 +113,7 @@ def round_to_seconds(value: datetime.timedelta) -> datetime.timedelta:
route_name="profile",
renderer="fietsboek:templates/profile.jinja2",
request_method="GET",
+ permission="profile.view",
)
def profile(request: Request) -> dict:
"""Shows the profile page.
@@ -154,7 +155,7 @@ def profile(request: Request) -> dict:
}
-@view_config(route_name="user-tile", request_method="GET")
+@view_config(route_name="user-tile", request_method="GET", permission="profile.view")
def user_tile(request: Request) -> Response:
"""Returns a single tile from the user's own overlay maps.