MIsc tweaks
This commit is contained in:
parent
b6c2227417
commit
8cd169e502
3 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
# The integrated mail queue functionality can enable advanced functionality if
|
||||||
|
# django-autocomplete-light is installed and configured. We can use this module
|
||||||
|
# to check for other installed dependencies in the future.
|
||||||
|
|
||||||
HAS_AUTOCOMPLETE = True
|
HAS_AUTOCOMPLETE = True
|
||||||
try:
|
try:
|
||||||
import dal
|
import dal
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
Upload Tasks
|
Upload Tasks
|
||||||
|
|
|
@ -14,8 +14,8 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
def staff_check(user):
|
def staff_check(user):
|
||||||
"""If TODO_STAFF_ONLY is set to True, limit view access to staff users only.
|
"""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,
|
# FIXME: More granular access control needed - see
|
||||||
# to satisfy all possible todo implementations.
|
https://github.com/shacker/django-todo/issues/50
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if hasattr(settings, "TODO_STAFF_ONLY") and settings.TODO_STAFF_ONLY:
|
if hasattr(settings, "TODO_STAFF_ONLY") and settings.TODO_STAFF_ONLY:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue