api endpoint to get the current dynamic position
This commit is contained in:
parent
c6aab7fb36
commit
7e56927a72
4 changed files with 118 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue