bea3a18330
The `v1.databases()` call did not correctly filter buckets based on auth. Fortunately, it did not cause any improper permissions such as allowing a person to see buckets that they had no read access to. The error instead was that if a user did not have read access to one of the buckets that was returned, the entire command would fail rather than filter out the bucket that didn't have permissions. This changes it so that if the user doesn't gets an unauthorized error when accessing a bucket, it will filter it from the list instead of failing. It also changes it so the error message is marked as `ENotFound` instead of as an internal error. |
||
---|---|---|
.. | ||
experimental | ||
influxdata/influxdb | ||
testing | ||
packages.go |