@axium/server 0.40.1 → 0.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/auth.js +1 -1
  2. package/package.json +1 -1
package/dist/auth.js CHANGED
@@ -168,7 +168,7 @@ export async function authSessionForItem(itemType, itemId, permissions, session,
168
168
  const matching = controls.filter(c => controlMatchesUser(c, user));
169
169
  if (!matching.length)
170
170
  if (!session || !user)
171
- error(401, 'Item is not public');
171
+ error(401, 'Item is not public (are you logged in?)');
172
172
  else
173
173
  error(403, 'Item is not shared with you');
174
174
  const missing = Array.from(checkACL(matching, permissions));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/server",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",