mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Fix Blacklist button for HR Staff
This commit is contained in:
@@ -286,7 +286,7 @@ def accept_application(request, applicationid):
|
||||
|
||||
def blacklist_user(request, userid):
|
||||
|
||||
if request.user.has_perm('hr.can_add_blacklist'):
|
||||
if request.user.has_perm('hr.add_blacklist'):
|
||||
|
||||
u = get_object_or_404(User, id=userid)
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="skill_controls">
|
||||
<a href="{% url sso.views.refresh_access user.id %}">Update Access</a>
|
||||
{% if "hr"|installed %}
|
||||
{% if perms.hr.can_add_blacklist %}
|
||||
{% if perms.hr.add_blacklist %}
|
||||
<a href="{% url hr.views.blacklist_user user.id %}">Blacklist User</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user