mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
Don't check permissions in a script
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
d965732b65
commit
03411ac9bd
@ -159,6 +159,10 @@ class PermissionBackend(ModelBackend):
|
|||||||
primary key, the result is not memoized. Moreover, the right could change
|
primary key, the result is not memoized. Moreover, the right could change
|
||||||
(e.g. for a transaction, the balance of the user could change)
|
(e.g. for a transaction, the balance of the user could change)
|
||||||
"""
|
"""
|
||||||
|
# Requested by a shell
|
||||||
|
if request is None:
|
||||||
|
return False
|
||||||
|
|
||||||
user_obj = request.user
|
user_obj = request.user
|
||||||
sess = request.session
|
sess = request.session
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user