Open nnseva opened 5 years ago
The simplest way to check rights is to return constant value, f.e. True, False, or {}. In case of constant grant type, the code should be allowed to look like:
True
False
{}
ApplyAblePlugin( changeable=False, deleteable=False, ),
instead of
ApplyAblePlugin( changeable=lambda queryset, request: False, deleteable=lambda queryset, request: False, ),
The simplest way to check rights is to return constant value, f.e.
True
,False
, or{}
. In case of constant grant type, the code should be allowed to look like:instead of