forked from tangled.org/core
Monorepo for Tangled

appview: add nil-check before resubmit-check

resubmit checks are valid only for users that are logged in

authored by oppi.li and committed by Tangled cfd2a0ca f79b2d2b

Changed files
+1 -1
appview
state
+1 -1
appview/state/pull.go
··· 116 116 117 117 mergeCheckResponse := s.mergeCheck(f, pull) 118 118 resubmitResult := pages.Unknown 119 - if user.Did == pull.OwnerDid { 119 + if user != nil && user.Did == pull.OwnerDid { 120 120 resubmitResult = s.resubmitCheck(f, pull) 121 121 } 122 122