Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
Executable
+16
@@ -0,0 +1,16 @@
|
||||
from rules import predicate
|
||||
|
||||
|
||||
@predicate
|
||||
def is_agency(user):
|
||||
return user.is_authenticated and user.is_agency
|
||||
|
||||
|
||||
@predicate
|
||||
def is_client(user):
|
||||
return user.is_authenticated and user.is_client
|
||||
|
||||
|
||||
@predicate
|
||||
def is_supplier(user):
|
||||
return user.is_authenticated and user.is_supplier
|
||||
Reference in new issue
Block a user