@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.
- package/dist/auth.js +1 -1
- 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));
|