0001-misc-add-option-to-exclude-user-names-from-frontoffi.patch
wcs/forms/common.py | ||
---|---|---|
273 | 273 |
if not self.formdef.is_user_allowed_read_status_and_history(get_request().user, self.filled): |
274 | 274 |
return |
275 | 275 | |
276 |
include_authors_in_form_history = get_publisher().get_site_option('include_authors_in_form_history', 'variables') != 'False' |
|
277 |
include_authors = get_request().is_in_backoffice() or include_authors_in_form_history |
|
276 | 278 |
return template.render( |
277 | 279 |
list(self.get_formdef_template_variants(self.history_templates)), |
278 |
{'formdata': self.filled}) |
|
280 |
{'formdata': self.filled, 'include_authors': include_authors})
|
|
279 | 281 | |
280 | 282 |
def check_receiver(self): |
281 | 283 |
session = get_session() |
wcs/templates/wcs/formdata_history.html | ||
---|---|---|
21 | 21 |
</div> |
22 | 22 |
{% endif %} |
23 | 23 |
<div class="msg"> |
24 |
{% if evolution.who %} |
|
24 |
{% if evolution.who and include_authors %}
|
|
25 | 25 |
<span class="user">{{evolution.get_author_name|default_if_none:""}} |
26 | 26 |
<span>{% if evolution.get_author_qualification %}({{evolution.get_author_qualification}}){% endif %}</span> |
27 | 27 |
</span> |
28 |
- |