File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,6 +228,14 @@ export const useSignStore = defineStore('sign', () => {
228228 const buildSignUrl = ( signRequestUuid , options = { } ) => {
229229 const { documentId } = options
230230 const isApprover = document . value ?. settings ?. isApprover
231+ const documentUuid = typeof document . value ?. uuid === 'string' && document . value . uuid . length > 0
232+ ? document . value . uuid
233+ : null
234+ const isApproverFileSigning = isApprover === true
235+ && typeof signRequestUuid === 'string'
236+ && signRequestUuid . length > 0
237+ && documentUuid !== null
238+ && signRequestUuid === documentUuid
231239
232240 let url
233241 if ( signRequestUuid ) {
@@ -236,7 +244,7 @@ export const useSignStore = defineStore('sign', () => {
236244 url = generateOcsUrl ( '/apps/libresign/api/v1/sign/file_id/{id}' , { id : documentId } ) + '?async=true'
237245 }
238246
239- if ( isApprover ) {
247+ if ( isApproverFileSigning ) {
240248 url += '&idDocApproval=true'
241249 }
242250
You can’t perform that action at this time.
0 commit comments