Skip to content

Commit

Permalink
Merge pull request #2405 from LibreSign/bugfix/allow-to-request-to-sign
Browse files Browse the repository at this point in the history
Fix check if requested_by exists
  • Loading branch information
vitormattos authored Feb 29, 2024
2 parents 2d42fd1 + a7079b7 commit b547554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/Request/RequestSignature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ export default {
computed: {
canSave() {
return this.canRequestSign
&& this.filesStore.getFile().requested_by.uid === getCurrentUser().uid
&& (
!Object.hasOwn(this.filesStore.getFile(), 'requested_by')
|| this.filesStore.getFile().requested_by.uid === getCurrentUser().uid
)
&& !this.filesStore.isSigned()
&& this.filesStore.getFile()?.signers?.length > 0
},
Expand Down

0 comments on commit b547554

Please sign in to comment.