mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-30 00:09:07 +01:00
Simply error surfacing
This commit is contained in:
@@ -26,6 +26,8 @@ func denialCode(reason string) (string, bool) {
|
||||
return "session_held", true
|
||||
case ipcauth.ErrorReasonNotProfileOwner:
|
||||
return "not_profile_owner", true
|
||||
case ipcauth.ErrorReasonProfileUnowned:
|
||||
return "profile_unowned", true
|
||||
default:
|
||||
return "permission_denied", false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user