mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix HR form issue, and correct the Update Access link on the user profile view
This commit is contained in:
@@ -67,7 +67,7 @@ class ApplicationForm(forms.Form):
|
|||||||
access = True
|
access = True
|
||||||
break
|
break
|
||||||
if not access:
|
if not access:
|
||||||
raise forms.ValidationError("%s requires a API key with greater access than the one you have added, please add a key with the correct access." % (corp, corp.application_config.api_accessmask))
|
raise forms.ValidationError("%s requires a API key with greater access than the one you have added, please add a key with the correct access." % corp)
|
||||||
|
|
||||||
return self.cleaned_data
|
return self.cleaned_data
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="{% url sso.views.refresh_access user.id %}" class="btn error">Update Access</a>
|
<a href="{% url sso-refreshaccess user.id %}" class="btn error">Update Access</a>
|
||||||
{% if "hr"|installed %}
|
{% if "hr"|installed %}
|
||||||
{% if perms.hr.add_blacklist %}
|
{% if perms.hr.add_blacklist %}
|
||||||
<a href="{% url hr-blacklistuser user.id %}" class="btn error">Blacklist User</a>
|
<a href="{% url hr-blacklistuser user.id %}" class="btn error">Blacklist User</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user