From 38f1be7b355ba337a841d656adc715ef078429e3 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 12 Dec 2011 18:37:25 +0000 Subject: [PATCH] Fix HR form issue, and correct the Update Access link on the user profile view --- app/hr/forms.py | 2 +- app/sso/templates/sso/lookup/user.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hr/forms.py b/app/hr/forms.py index e3bec66..950e704 100644 --- a/app/hr/forms.py +++ b/app/hr/forms.py @@ -67,7 +67,7 @@ class ApplicationForm(forms.Form): access = True break 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 diff --git a/app/sso/templates/sso/lookup/user.html b/app/sso/templates/sso/lookup/user.html index ab58d0f..0f4678c 100644 --- a/app/sso/templates/sso/lookup/user.html +++ b/app/sso/templates/sso/lookup/user.html @@ -22,7 +22,7 @@

-Update Access +Update Access {% if "hr"|installed %} {% if perms.hr.add_blacklist %} Blacklist User