django-rq icon indicating copy to clipboard operation
django-rq copied to clipboard

Specify function to be used instead of staff_member_required

Open turicas opened this issue 8 years ago • 1 comments

I have a use case where I'd like only superusers to access the Django-RQ inside Django Admin, but this customization is not possible with the current code. It'd be awesome if we can specify a function to determine if a specific user can or cannot access the RQ admin (the function can easily be implemented using Django Admin's user_passes_test, as staff_member_required does).

turicas avatar Nov 15 '17 16:11 turicas

This is a reasonable idea. Could you please open a PR, complete with docs for this?

selwin avatar Jan 31 '18 00:01 selwin