Skip to content

Server Error on permission checks #2505

@janno42

Description

@janno42

When an anonymous user (not logged in) requests a view that requires permission (e.g., grades.views.SemesterView), an AttributeError occurs because the AnonymousUser doesn't have the respective attribute (e.g., is_grade_publisher).

Instead, the permission decorator functions should always return False for anonymous users.

Metadata

Metadata

Labels

[C] BackendFocuses on backend implementation[P] MediumMedium priority[S] Very smallThis issue should require only very small changes.[T] BugThis is a bug. We don't like it. Please get rid of it.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions