Skip to content

Commit

Permalink
Merge pull request #174 from SixofClubsss/dev
Browse files Browse the repository at this point in the history
call requestHandler if perm is Ask
  • Loading branch information
DankFC authored Apr 5, 2024
2 parents 81d61c2 + 7f29017 commit bd300c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion walletapi/xswd/xswd.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (x *XSWD) handleMessage(app *ApplicationData, request *jrpc2.Request) inter
// Request the permission for a method and save its result if it must be persisted
func (x *XSWD) requestPermission(app *ApplicationData, request *jrpc2.Request) Permission {
perm, found := app.Permissions[request.Method()]
if !found {
if !found || perm == Ask {
perm = x.requestHandler(app, request)

if perm == AlwaysDeny || perm == AlwaysAllow {
Expand Down

0 comments on commit bd300c0

Please sign in to comment.