first drafts for inventory sync page
This commit is contained in:
@@ -198,7 +198,7 @@ func authorizeByMatchingAccountID(r *http.Request, acctIDPathPosition int) error
|
||||
}
|
||||
|
||||
id := getIdentity(r.Context())
|
||||
if id.Account == nil || id.Account.ID != acctID {
|
||||
if id.Account == nil || id.Account.AccountID != acctID {
|
||||
return response.Unauthorized().
|
||||
Msgf("user does not have access to account %d", acctID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user