api endpoint to get the current dynamic position

This commit is contained in:
Laura Klünder 2019-12-27 20:02:58 +01:00
parent c6aab7fb36
commit 7e56927a72
4 changed files with 118 additions and 21 deletions

View file

@ -199,7 +199,7 @@ class AccessPermission(models.Model):
@classmethod
def get_for_request(cls, request):
if not request.user.is_authenticated:
if not request or not request.user.is_authenticated:
return set()
if request.user_permissions.grant_all_access: