Use AuthHandler.get_permissions()
instead of deprecated `cache_permissions()`
This commit is contained in:
parent
3aac855fa1
commit
a0bb481a43
2 changed files with 3 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2021 Lance Edgar
|
||||
# Copyright © 2010-2022 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -89,7 +89,7 @@ class AuthenticationView(APIView):
|
|||
return {
|
||||
'ok': True,
|
||||
'user': self.get_user_info(user),
|
||||
'permissions': list(auth.cache_permissions(Session(), user)),
|
||||
'permissions': list(auth.get_permissions(Session(), user)),
|
||||
}
|
||||
|
||||
def authenticate_user(self, username, password):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue