MIsc tweaks

This commit is contained in:
Scot Hacker 2019-04-07 16:11:28 -07:00
parent b6c2227417
commit 8cd169e502
3 changed files with 6 additions and 3 deletions

View file

@ -14,8 +14,8 @@ log = logging.getLogger(__name__)
def staff_check(user):
"""If TODO_STAFF_ONLY is set to True, limit view access to staff users only.
# FIXME: More granular access control is needed... but need to do it generically,
# to satisfy all possible todo implementations.
# FIXME: More granular access control needed - see
https://github.com/shacker/django-todo/issues/50
"""
if hasattr(settings, "TODO_STAFF_ONLY") and settings.TODO_STAFF_ONLY: