forked from tr4ck3ur/jm2l
Fix Staff condition for non logged people
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
<strong>
|
<strong>
|
||||||
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}">${entity.name}</a>
|
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}">${entity.name}</a>
|
||||||
</strong>
|
</strong>
|
||||||
% if request.user.Staff:
|
% if request.user and request.user.Staff:
|
||||||
<span style="float:right;">
|
<span style="float:right;">
|
||||||
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">edit</a>
|
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">edit</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -54,4 +54,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ ${The_entity_type.entity_subtype}
|
|||||||
%if entity.tiers_id:
|
%if entity.tiers_id:
|
||||||
<a href="http://jm2l.linux-azur.org/node/${entity.tiers_id}">Link</a> -
|
<a href="http://jm2l.linux-azur.org/node/${entity.tiers_id}">Link</a> -
|
||||||
%endif
|
%endif
|
||||||
% if (request.user.Staff or request.user in entity.members):
|
% if request.user and (request.user.Staff or request.user in entity.members):
|
||||||
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">Editer</a>
|
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">Editer</a>
|
||||||
% endif
|
% endif
|
||||||
<div clear='both'></div>
|
<div clear='both'></div>
|
||||||
@@ -93,4 +93,4 @@ ${The_entity_type.entity_subtype}
|
|||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user