11 lines
153 B
Python
Executable File
11 lines
153 B
Python
Executable File
from rules import predicate
|
|
|
|
|
|
@predicate
|
|
def _is_active(user):
|
|
return user.is_active
|
|
|
|
|
|
can_read_user = _is_active
|
|
can_read_current_user = _is_active
|