Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from safing/fix/access-denied-notif
Browse files Browse the repository at this point in the history
Improve inactive subscription notification
  • Loading branch information
dhaavi committed Dec 6, 2021
2 parents 7409490 + fc06e97 commit 69dfb99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions captain/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ func preFlightCheck(ctx context.Context) error {
if err != nil {
if errors.Is(err, access.ErrMayNotUseSPN) {
notifications.NotifyError(
"spn:access-denied",
"SPN Access Denied",
`You are currently not eligible to access the SPN. Please check your status on account.safing.io.`,
"spn:subscription-inactive",
"SPN Subscription Inactive",
`Your account is currently not subscribed to the SPN. Follow the instructions on account.safing.io to get started.`,
spnOpenAccountWeb,
spnSettingsButton,
).AttachToModule(module)
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ github.com/safing/portmaster v0.7.6 h1:J5cH6MLFXkUewmyfBb+O8tO/bWF3lpLujdk9iwR/5
github.com/safing/portmaster v0.7.6/go.mod h1:qOs9hQtvAzTVICRbwLg3vddqOaqJHeWBjWQ0C+TJ/Bw=
github.com/safing/portmaster v0.7.8 h1:FZR3/hnKLVZvEJAS7akZbCnC2gC37FJGMo3KH0Hoqds=
github.com/safing/portmaster v0.7.8/go.mod h1:foSkhU9v3Kl+DUStSSpQc0bTr2bx9q7nTZ8N8ykDJpM=
github.com/safing/portmaster v0.7.9 h1:8vStgYdHOOM9GVoOTyYdks3jXGUQDzZoPhDZMfM+M+8=
github.com/safing/spn v0.2.4/go.mod h1:ZA6za4rEP46GiVKJGZsQyqoqMvPhtF913mg5JtJl3Sc=
github.com/safing/spn v0.2.5/go.mod h1:/WNZAVoJB8C1Ut771dYyxyYCdPge2NXoU++dp4cAMDg=
github.com/safing/spn v0.3.0/go.mod h1:bZsO2kHMvymxLxIh6Ij99W/S0wT4HFcNQy4kEa5O52Q=
Expand Down

0 comments on commit 69dfb99

Please sign in to comment.