diff --git a/pagure/templates/file.html b/pagure/templates/file.html index 7130305..b5541c8 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -109,7 +109,10 @@ branchname=branchname, filename=filename | unicode) }}" title="Edit file">Edit {% endif %} - {% if output_type in ('file','markup') %} + {% if output_type in ('file','markup') and not authenticated + or ( + not repo.is_fork + or (authenticated and repo.user.user != g.fas_user.username)) %}