@crombolo/data 0.44.0 → 0.45.0
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/package.json +2 -2
- package/src/schema/seed.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. SQLite and Postgres storage for crombolo: schema, migrations and repositories.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@crombolo/core": "0.
|
|
31
|
+
"@crombolo/core": "0.45.0",
|
|
32
32
|
"kysely": "0.29.6"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/src/schema/seed.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Password hashing is injected rather than imported so this package stays free of
|
|
5
5
|
* a dependency on @crombolo/auth.
|
|
6
6
|
*/
|
|
7
|
-
import { MediaPermissions, RemotePermissions } from '@crombolo/core'
|
|
7
|
+
import { EXPLICIT_PERMISSIONS, MediaPermissions, RemotePermissions } from '@crombolo/core'
|
|
8
8
|
import type { Db } from '../database.ts'
|
|
9
9
|
import { DbDate } from '../dialect.ts'
|
|
10
10
|
|
|
@@ -69,7 +69,8 @@ export const BUILT_IN_GROUP_PERMISSIONS: Record<string, readonly string[]> = {
|
|
|
69
69
|
'Umb.Document.PropertyValue.Write',
|
|
70
70
|
...FORM_FULL,
|
|
71
71
|
...ELEMENT_EDIT,
|
|
72
|
-
|
|
72
|
+
// Never one a group has to name (story 241): administrators are not given it.
|
|
73
|
+
...Object.values(RemotePermissions).filter((verb) => !EXPLICIT_PERMISSIONS.has(verb)),
|
|
73
74
|
...MEDIA_FULL,
|
|
74
75
|
],
|
|
75
76
|
editor: [
|