Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #755 from caktus/bug-938680-disallow-curator-remov…
Browse files Browse the repository at this point in the history
…ing-themself

Bug 938680 - Don't show "Remove X" button for yourself
  • Loading branch information
dpoirier committed Dec 31, 2013
2 parents 88c5182 + 96a904b commit 9cbad1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mozillians/templates/phonebook/includes/search_result.html
@@ -1,5 +1,5 @@
<div class="result">
{% if group and (is_curator or request.user.is_superuser) %}
{% if group and (is_curator or request.user.is_superuser) and (request.user != profile.user) %}
<form action="{{ url('groups:remove_member', group_pk=group.pk, user_pk=profile.pk) }}" method="GET">
{{ csrf() }}
<button type="submit" class="button remove">{{ _('Remove') }} <span></span></button>
Expand Down

0 comments on commit 9cbad1a

Please sign in to comment.