Fixed a bug in soc/views/models/role.py.
This bug allowed the creation of only invalid requests opposed to valid requests.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/role.py Sat Jan 31 19:02:53 2009 +0000
+++ b/app/soc/views/models/role.py Sat Jan 31 19:33:40 2009 +0000
@@ -506,7 +506,7 @@
'role_verbose' : params['name'],
'status' : 'new'}
- if self._isValidNewRequest(request_fields, params):
+ if not self._isValidNewRequest(request_fields, params):
# not a valid request
context['error_message'] = self.DEF_REQUEST_ERROR_MSG_FMT % (
params)