0.5.17 fix docs not allow
This commit is contained in:
@@ -40,11 +40,15 @@ def get_inter_Dict(user, context_Dict):
|
||||
feedback_form.initial = {'form_name': form_name}
|
||||
Dict.update({'feedback_form': feedback_form})
|
||||
|
||||
from DocsApp.models import DocArt
|
||||
arts_exists = DocArt.objects.filter(enable=True).exists()
|
||||
|
||||
Dict.update({
|
||||
'sections': sections,
|
||||
'logo': get_logo_url(),
|
||||
'hide_form_field_description': hide_form_field_description,
|
||||
'footer_contacts': get_footer_contacts(),
|
||||
'allow_documentation': arts_exists,
|
||||
})
|
||||
# from SubscribesApp.funcs import get_cur_user_subscribe
|
||||
# user_subscribe = get_cur_user_subscribe(user)
|
||||
|
||||
Reference in New Issue
Block a user