0001-forms-fix-receiver-access-to-form-submission-7329.patch
wcs/forms/root.py | ||
---|---|---|
251 | 251 |
user_roles = set([]) |
252 | 252 |
other_roles = (self.formdef.roles or []) |
253 | 253 |
if self.formdef.workflow_roles: |
254 |
other_roles.extend(self.formdef.workflow_roles.keys())
|
|
254 |
other_roles.extend(self.formdef.workflow_roles.values())
|
|
255 | 255 |
if not user_roles.intersection(other_roles): |
256 | 256 |
raise errors.AccessForbiddenError() |
257 | 257 | |
258 |
- |