Fix anonymous users having write permissions on anonymous torrents
Cette révision appartient à :
Parent
b61fe55f82
révision
acfdaf2d6e
1 fichiers modifiés avec 3 ajouts et 1 suppressions
|
@ -91,9 +91,11 @@
|
||||||
{{ if HasAdmin $.User}}
|
{{ if HasAdmin $.User}}
|
||||||
<a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="form-input" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;">{{ call $.T "delete" }}</a>
|
<a href="{{ genRoute "mod_tdelete" }}?id={{ .ID }}" class="form-input" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;">{{ call $.T "delete" }}</a>
|
||||||
<a href="{{ genRoute "mod_tedit" }}?id={{ .ID }}" class="form-input">{{ call $.T "edit" }}</a>
|
<a href="{{ genRoute "mod_tedit" }}?id={{ .ID }}" class="form-input">{{ call $.T "edit" }}</a>
|
||||||
{{ else if CurrentUserIdentical $.User .UploaderID }}
|
{{ else if gt $.User.ID 0}}
|
||||||
|
{{ if CurrentUserIdentical $.User .UploaderID }}
|
||||||
<a href="{{ genRoute "user_torrent_delete" }}?id={{ .ID }}" class="form-input" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;">{{ call $.T "delete" }}</a>
|
<a href="{{ genRoute "user_torrent_delete" }}?id={{ .ID }}" class="form-input" onclick="if (!confirm('{{ call $.T "are_you_sure" }}')) return false;">{{ call $.T "delete" }}</a>
|
||||||
<a href="{{ genRoute "user_torrent_edit" }}?id={{ .ID }}" class="form-input">{{ call $.T "edit" }}</a>
|
<a href="{{ genRoute "user_torrent_edit" }}?id={{ .ID }}" class="form-input">{{ call $.T "edit" }}</a>
|
||||||
|
{{ end }}
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<p class="torrent-hr">{{call $.T "description"}}</p>
|
<p class="torrent-hr">{{call $.T "description"}}</p>
|
||||||
|
|
Référencer dans un nouveau ticket