mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
fix role validation
This commit is contained in:
1 parent
c0df8e0ec3
commit
cdfecb2a8f
1 file changed
+1
-1
@@ -94,7 +94,7 @@ module Submitters
|
|||||||
end
|
end
|
||||||
|
|
||||||
def fetch_fields(template, submitter_name: nil, for_submitter: nil)
|
def fetch_fields(template, submitter_name: nil, for_submitter: nil)
|
||||||
if submitter_name
|
if submitter_name && !for_submitter
|
||||||
submitter =
|
submitter =
|
||||||
template.submitters.find { |e| e['name'] == submitter_name } ||
|
template.submitters.find { |e| e['name'] == submitter_name } ||
|
||||||
raise(UnknownSubmitterName,
|
raise(UnknownSubmitterName,
|
||||||
|
|||||||
Reference in new issue
Block a user