Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix anonymous users having write permissions on anonymous torrents

Cette révision appartient à :
kipukun 2017-06-05 13:35:34 -04:00
Parent b61fe55f82
révision acfdaf2d6e

Voir le fichier

@ -91,9 +91,11 @@
{{ 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_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_edit" }}?id={{ .ID }}" class="form-input">{{ call $.T "edit" }}</a>
{{ end }}
{{end}}
</div>
<p class="torrent-hr">{{call $.T "description"}}</p>