Fix HR form issue, and correct the Update Access link on the user profile view

This commit is contained in:
2011-12-12 18:37:25 +00:00
parent 0bb322eb27
commit 38f1be7b35
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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>