Closed pe712 closed 1 year ago
The package is not using built-in permissions of django admin as described here. Instead, the has_perm field point to a function passing the request.
has_perm
This PR allow :
test_func
It is backward-compatible with a warning if the user passes a test_func in the field has_perm.
Also if the test_func does not exist, it does not allow to see the shortcut.
Nice! Could you also update the README with example usage?
Thank you, this is now in 2.1.1! 💪
The package is not using built-in permissions of django admin as described here. Instead, the
has_perm
field point to a function passing the request.This PR allow :
test_func
has_perm
It is backward-compatible with a warning if the user passes a test_func in the field
has_perm
.Also if the
test_func
does not exist, it does not allow to see the shortcut.