From 1dede267f22e5d4458b521721b865171dd8fad97 Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Mar 03 2017 13:19:40 +0000 Subject: Allow repo user to Take/Drop assigment of issue Fixes: https://pagure.io/pagure/issue/2034 --- diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index f2669da..7e6338c 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -761,11 +761,11 @@ function drop_issue(){ {% endif %} function setup_btn_take_drop(){ - {% if authenticated and g.repo_admin %} + {% if authenticated and g.repo_user %} $("#take-btn").click(take_issue) {% endif %} {% if authenticated and ( - g.repo_admin + g.repo_user or issue.user.user == g.fas_user.username or issue.assignee.user == g.fas_user.username) %} $("#drop-btn").click(drop_issue);