diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a31cc8000699b0b6d0310c11fe5c18cc18e9bdb0..307c0047a25cb095484c4ac8081d498fd78485f3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -49,6 +49,7 @@ Changed Fixed ~~~~~ +* The permission check for the dashboard edit page failed when the user had no person assigned. * The system tried to send notifications for done background tasks in addition to tasks started in the foreground. * Invitations for existing short name did not work. diff --git a/aleksis/core/views.py b/aleksis/core/views.py index ed3a355ff657b037dab9c88a32e38ac760c8c7ee..8cf952ae765321aef2545e64b19af2e28f1d39a1 100644 --- a/aleksis/core/views.py +++ b/aleksis/core/views.py @@ -971,7 +971,7 @@ class EditDashboardView(PermissionRequiredMixin, View): if ( self.default_dashboard and not request.user.has_perm("core.edit_default_dashboard_rule") - or getattr(request.user.person, "is_dummy", False) + or getattr(request.user, "person", True) and getattr(request.user.person, "is_dummy", False) ): raise PermissionDenied()